Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sdbm.c: fix off-by-one access to global ".dir"
Detected by clang -faddress-sanitizer. The bug came in 081f72a, where we started calculating lengths with sizeof on string constants instead of using strlen. Since string constants include the null byte, sizeof(".dir"), for example, is 5, but we've been copying 6 bytes. This patch resolves [perl #111586] and includes revisions by the committer.
- Loading branch information