mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 06:17:47 +08:00
SAFE_BYTE_GET_INTERNAL
We won't want this assert triggering in the next release. * dwarf.c (SAFE_BYTE_GET_INTERNAL): Assert only when ENABLE_CHECKING.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2021-05-15 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* dwarf.c (SAFE_BYTE_GET_INTERNAL): Assert only when ENABLE_CHECKING.
|
||||||
|
|
||||||
2021-05-15 Alan Modra <amodra@gmail.com>
|
2021-05-15 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* bucomm.h (_mul_overflow): Define.
|
* bucomm.h (_mul_overflow): Define.
|
||||||
|
@ -390,8 +390,11 @@ read_leb128 (unsigned char *data,
|
|||||||
(int) amount, (int) sizeof (VAL)); \
|
(int) amount, (int) sizeof (VAL)); \
|
||||||
amount = sizeof (VAL); \
|
amount = sizeof (VAL); \
|
||||||
} \
|
} \
|
||||||
assert ((PTR) <= (END)); \
|
if (ENABLE_CHECKING) \
|
||||||
|
assert ((PTR) <= (END)); \
|
||||||
size_t avail = (END) - (PTR); \
|
size_t avail = (END) - (PTR); \
|
||||||
|
if ((PTR) > (END)) \
|
||||||
|
avail = 0; \
|
||||||
if (amount > avail) \
|
if (amount > avail) \
|
||||||
amount = avail; \
|
amount = avail; \
|
||||||
if (amount == 0) \
|
if (amount == 0) \
|
||||||
|
Reference in New Issue
Block a user