#
d1312185 |
| 28-Dec-2022 |
John Baldwin <jhb@FreeBSD.org> |
h_resolv: Fix a buffer overflow in load().
fgetln() returns a pointer to an array of characters that is 'len' characters long, not 'len + 1'. While here, overwriting the contents of the buffer retu
h_resolv: Fix a buffer overflow in load().
fgetln() returns a pointer to an array of characters that is 'len' characters long, not 'len + 1'. While here, overwriting the contents of the buffer returned by fgetln isn't really safe, so switch to using getline() instead.
Note that these fixes are a subset of those applied to a near-identical copy of this function in libc's resolv_test.c in commit 2afeaad315ac19450389b8f2befdbe7c91c37818.
Reviewed by: ngie Reported by: CHERI (buffer overflow) Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D37886
show more ...
|
#
57718be8 |
| 02-Oct-2014 |
Enji Cooper <ngie@FreeBSD.org> |
Import the NetBSD test suite from ^/vendor/NetBSD/tests/09.30.2014_20.45 , minus the vendor Makefiles
Provide directions for how to bootstrap the vendor sources in FREEBSD-upgrade
MFC after 2 weeks
Import the NetBSD test suite from ^/vendor/NetBSD/tests/09.30.2014_20.45 , minus the vendor Makefiles
Provide directions for how to bootstrap the vendor sources in FREEBSD-upgrade
MFC after 2 weeks Discussed with: rpaulo Sponsored by: EMC / Isilon Storage Division
show more ...
|