HomeFreeBSD

mail/opendkim: fix strlcpy misuse with overlapping buffers

Description

mail/opendkim: fix strlcpy misuse with overlapping buffers

strlcpy() is undefined when source and destination overlap. Replace
with manual copy in the SubDomains domain extraction where
dfc->mctx_domain and the source pointer p can overlap.

PR:           [[ https://bugs.freebsd.org/283487 | 283487 ]]
Approved by:  freebsd-ports@dan.me.uk (maintainer timeout)

Details

Provenance
tzAuthored on Mar 25 2026, 12:55 PM
Parents
R11:e42e8fb40b8d: net/mDNSResponder: add resume support to rc scripts
Branches
Unknown
Tags
Unknown