This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug dynamic-link/22149] cache.c:save_cache creates zero-size VLA
- From: "fweimer at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 27 Nov 2017 12:10:42 +0000
- Subject: [Bug dynamic-link/22149] cache.c:save_cache creates zero-size VLA
- Auto-submitted: auto-generated
- References: <bug-22149-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=22149
--- Comment #3 from Florian Weimer <fweimer at redhat dot com> ---
(In reply to Andreas Schwab from comment #0)
> The C standard does not allow creating a VLA with zero size, but save_cache
> tries to do so when the padding is zero. This causes misbehaviour with the
> proposed -fstack-clash-protection option of gcc which assumes that it can
> always emit at least one stack probe to the allocated space.
Also seen in _nl_load_locale_from_archive and _dl_fini. GCC consensus is that
those were GCC bugs:
https://gcc.gnu.org/ml/gcc-patches/2017-11/msg01150.html
--
You are receiving this mail because:
You are on the CC list for the bug.