This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug dynamic-link/22149] New: cache.c:save_cache creates zero-size VLA


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]