This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/85025] New: libgcc/config/i386/shadow-stack-unwind.h is wrong
- From: "hjl.tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 22 Mar 2018 03:13:50 +0000
- Subject: [Bug target/85025] New: libgcc/config/i386/shadow-stack-unwind.h is wrong
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85025
Bug ID: 85025
Summary: libgcc/config/i386/shadow-stack-unwind.h is wrong
Product: gcc
Version: 8.0.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: hjl.tools at gmail dot com
CC: igor.v.tsimbalist at intel dot com
Target Milestone: ---
libgcc/config/i386/shadow-stack-unwind.h has
/* Unwind the shadow stack for EH. */
#undef _Unwind_Frames_Extra
#define _Unwind_Frames_Extra(x) \
do \
{ \
_Unwind_Word ssp = _get_ssp (); \
if (ssp != 0) \
{ \
_Unwind_Word tmp = (x); \
while (tmp > 255) \
{ \
_inc_ssp (tmp); \
^^^ This should be 255.
tmp -= 255; \
} \
_inc_ssp (tmp); \
} \
} \
while (0)