mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-10 09:42:26 +00:00
b7f7cc25c0
GCC 13 incorrectly thinks a call to free after a failed realloc is a use after free. lib/libcasper/services/cap_grp/cap_grp.c: In function 'group_resize': lib/libcasper/services/cap_grp/cap_grp.c:65:17: error: pointer 'buf' may be used after 'realloc' [-Werror=use-after-free] 65 | free(buf); | ^~~~~~~~~ lib/libcasper/services/cap_grp/cap_grp.c:63:19: note: call to 'realloc' here 63 | gbuffer = realloc(buf, gbufsize); | ^~~~~~~~~~~~~~~~~~~~~~ Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D42576 |
||
---|---|---|
.. | ||
cap_dns | ||
cap_fileargs | ||
cap_grp | ||
cap_net | ||
cap_netdb | ||
cap_pwd | ||
cap_sysctl | ||
cap_syslog | ||
tests | ||
Makefile | ||
Makefile.depend | ||
Makefile.inc |