1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-10 09:42:26 +00:00
freebsd/lib/libcasper/services
John Baldwin b7f7cc25c0 libcasper: Neuter false positive -Wuse-after-free warnings from GCC 13
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
2023-11-14 18:34:01 -08:00
..
cap_dns dirdeps: Update Makefile.depend* files with empty contents 2023-10-29 17:01:04 -04:00
cap_fileargs Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
cap_grp libcasper: Neuter false positive -Wuse-after-free warnings from GCC 13 2023-11-14 18:34:01 -08:00
cap_net dirdeps: Update Makefile.depend* files with empty contents 2023-10-29 17:01:04 -04:00
cap_netdb libcasper: Neuter false positive -Wuse-after-free warnings from GCC 13 2023-11-14 18:34:01 -08:00
cap_pwd libcasper: Neuter false positive -Wuse-after-free warnings from GCC 13 2023-11-14 18:34:01 -08:00
cap_sysctl dirdeps: Update Makefile.depend* files with empty contents 2023-10-29 17:01:04 -04:00
cap_syslog Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
tests Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
Makefile.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00