[Bug 287013] m4 code to display MIN_INT is unsafe
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 287013] m4 code to display MIN_INT is unsafe"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 24 May 2025 17:28:47 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287013
--- Comment #3 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=ab4edcd552c967a400e85afc0fd3e6729fa9ee2c
commit ab4edcd552c967a400e85afc0fd3e6729fa9ee2c
Author: Eric Blake <eblake@redhat.com>
AuthorDate: 2025-05-24 17:21:38 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2025-05-24 17:26:47 +0000
m4: Fix OOB access displaying MIN_INT
Previously displaying INT_MIN resulted in an out of bounds access to
digits[-8]. In twos-complement -INT_MIN is still negative.
PR: 287013
Reviewed by: emaste
usr.bin/m4/misc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
You are receiving this mail because:
You are the assignee for the bug.