This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug dynamic-link/22149] New: cache.c:save_cache creates zero-size VLA
- From: "schwab at linux-m68k dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 18 Sep 2017 09:32:46 +0000
- Subject: [Bug dynamic-link/22149] New: cache.c:save_cache creates zero-size VLA
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=22149
Bug ID: 22149
Summary: cache.c:save_cache creates zero-size VLA
Product: glibc
Version: 2.26
Status: NEW
Severity: normal
Priority: P2
Component: dynamic-link
Assignee: unassigned at sourceware dot org
Reporter: schwab@linux-m68k.org
Target Milestone: ---
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.
--
You are receiving this mail because:
You are on the CC list for the bug.