public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* glibc 2.36 build failure on Fedora 36 with gcc 12 (-Werror=use-after-free)
@ 2022-07-29 15:26 Carlos O'Donell
  2022-07-29 15:43 ` Sunil Pandey
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Carlos O'Donell @ 2022-07-29 15:26 UTC (permalink / raw)
  To: libc-alpha

Just posting here for the record that I see a glibc 2.36 build failure
with Fedora 36 and gcc 12.

localealias.c: In function ‘read_alias_file’:
localealias.c:335:56: error: pointer may be used after ‘realloc’ [-Werror=use-after-free]
  335 |                               map[i].alias += new_pool - string_space;
      |                                               ~~~~~~~~~^~~~~~~~~~~~~~
localealias.c:325:49: note: call to ‘realloc’ here
  325 |                       char *new_pool = (char *) realloc (string_space, new_size);
      |                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

I'm going to review this quickly before we make the glibc release.

-- 
Cheers,
Carlos.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-07-29 18:07 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-29 15:26 glibc 2.36 build failure on Fedora 36 with gcc 12 (-Werror=use-after-free) Carlos O'Donell
2022-07-29 15:43 ` Sunil Pandey
2022-07-29 16:08   ` Sunil Pandey
2022-07-29 17:46     ` Sunil Pandey
2022-07-29 17:52       ` H.J. Lu
2022-07-29 18:07         ` Sunil Pandey
2022-07-29 15:52 ` Mark Wielaard
2022-07-29 16:34 ` Carlos O'Donell
2022-07-29 16:39 ` Paul Eggert
2022-07-29 16:50   ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).