Created attachment 226707 [details] Patch for judy Import patch to fix memory corruption Clang also warns about this during compilation such as: "warning: array index 14 is past the end of the array (whichcontains 8 elements) [-Warray-bounds]" Source: https://github.com/netdata/libjudy/commit/e95874a4e271d0f8535ab78862af3d57d33e9d1e
Compile tested on FreeBSD 13.0-STABLE #0 stable/13-n246086-a20c597c6d7 (amd64) (make, make check-plist) Poudriere testport OK 12.2-RELEASE (amd64) Poudriere testport OK 11.4-RELEASE (amd64)
Thanks Daniel!
Comment on attachment 226707 [details] Patch for judy ^Triage: Approved by: portmgr (unmaintained port) MFH: 2020Q3 (blanket: runtime bugfix)
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=0e8cb6eb96e1a55e7d57deea3d79b3ba5d6e6ac5 commit 0e8cb6eb96e1a55e7d57deea3d79b3ba5d6e6ac5 Author: Daniel Engberg <daniel.engberg.lists@pyret.net> AuthorDate: 2021-07-31 20:03:52 +0000 Commit: Li-Wen Hsu <lwhsu@FreeBSD.org> CommitDate: 2021-07-31 20:03:52 +0000 devel/judy: Import patch to fix memory corruption PR: 257429 Obtained from: https://github.com/netdata/libjudy/commit/e95874a4e271d0f8535ab78862af3d57d33e9d1e devel/judy/Makefile | 8 +-- .../patch-src_JudyCommon_JudyPrivateBranch.h (new) | 63 ++++++++++++++++++++++ 2 files changed, 67 insertions(+), 4 deletions(-)
A commit in branch 2021Q3 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=1b1f9cf1172d910ac2478a32f474bb5c60b30b98 commit 1b1f9cf1172d910ac2478a32f474bb5c60b30b98 Author: Daniel Engberg <daniel.engberg.lists@pyret.net> AuthorDate: 2021-07-31 20:03:52 +0000 Commit: Li-Wen Hsu <lwhsu@FreeBSD.org> CommitDate: 2021-07-31 20:05:49 +0000 devel/judy: Import patch to fix memory corruption PR: 257429 Obtained from: https://github.com/netdata/libjudy/commit/e95874a4e271d0f8535ab78862af3d57d33e9d1e (cherry picked from commit 0e8cb6eb96e1a55e7d57deea3d79b3ba5d6e6ac5) devel/judy/Makefile | 8 +-- .../patch-src_JudyCommon_JudyPrivateBranch.h (new) | 63 ++++++++++++++++++++++ 2 files changed, 67 insertions(+), 4 deletions(-)