mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 16:05:56 +08:00
2013-10-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
* dwarf.c (SAFE_BYTE_GET): Fix argument check.
This commit is contained in:
@ -288,7 +288,7 @@ read_uleb128 (unsigned char * data,
|
||||
#define SAFE_BYTE_GET(VAL, PTR, AMOUNT, END) \
|
||||
do \
|
||||
{ \
|
||||
int dummy [sizeof (VAL) < (AMOUNT) ? -1 : 0] ATTRIBUTE_UNUSED ; \
|
||||
int dummy [sizeof (VAL) < (AMOUNT) ? -1 : 1] ATTRIBUTE_UNUSED ; \
|
||||
unsigned int amount = (AMOUNT); \
|
||||
if (((PTR) + amount) >= (END)) \
|
||||
{ \
|
||||
|
Reference in New Issue
Block a user