◐ Shell
clean mode source ↗

merge_files: avoid UB in xdiff by ethomson · Pull Request #7239 · libgit2/libgit2

@ethomson mentioned this pull request

May 1, 2026
Test handing a zero byte but extant file to merge_files.
For zero byte files, avoid allocation - this avoids undefined behavior
around malloc(0) and potentially memcpy(..., NULL, 0).

netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this pull request

May 5, 2026

netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this pull request

May 13, 2026

netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this pull request

May 21, 2026