https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104069
vincent at systemli dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vincent at systemli dot org --- Comment #24 from vincent at systemli dot org --- elfutils 0.187 with gcc 12.2.0 In function 'bigger_buffer', inlined from '__libdw_gunzip' at gzip.c:376:12: gzip.c:98:9: error: pointer may be used after 'realloc' [-Werror=use-after-free] 98 | b = realloc (state->buffer, more -= 1024); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gzip.c:96:13: note: call to 'realloc' here 96 | char *b = realloc (state->buffer, more); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors