NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/57951 CVS commit: src/tests/lib/libutil



The following reply was made to PR lib/57951; it has been noted by GNATS.

From: "Roland Illig" <rillig%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/57951 CVS commit: src/tests/lib/libutil
Date: Tue, 20 Feb 2024 19:49:10 +0000

 Module Name:	src
 Committed By:	rillig
 Date:		Tue Feb 20 19:49:10 UTC 2024
 
 Modified Files:
 	src/tests/lib/libutil: t_snprintb.c
 
 Log Message:
 tests/snprintb: fix out-of-bounds memory read (since 2024-02-16)
 
 Before t_snprintb.c 1.20, the buffer size was required to be greater
 than zero. Allowing the buffer size to be zero led to buf[-1] being
 checked. On amd64, that byte happened to be 0, on i386 it didn't.
 
 Fixes PR lib/57951.
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.22 -r1.23 src/tests/lib/libutil/t_snprintb.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 


Home | Main Index | Thread Index | Old Index