summaryrefslogtreecommitdiff
path: root/gdb/target-descriptions.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-08-03 15:06:15 +0930
committerAlan Modra <amodra@gmail.com>2022-08-03 17:00:17 +0930
commitecfc6ddb8074aff8882155b5900958725094f508 (patch)
tree4027cb09f5e8cb7dba10215a9b100fd91a354562 /gdb/target-descriptions.c
parent5844ccaac7d7e628b8c3feea725d87fd4bafbdf6 (diff)
Re: PE objdump -x
All of these buffer overrun tests are better written as a comparison against size remaining, due to ISO C 9899 standard 6.5.2 para 8 regarding adding a constant to a pointer: "If both the pointer operand and the result point to elements of the same array object, or one past the last element of the array object, the evaluation shall not produce an overflow; otherwise, the behavior is undefined." So "ex_dta + 4" might be undefined behaviour, if you interpret "the array object" in this case to be the malloc'd section contents! * pei-x86_64.c (pex64_get_unwind_info): Tidy sanity checks. (pex64_xdata_print_uwd_codes): Likewise.
Diffstat (limited to 'gdb/target-descriptions.c')
0 files changed, 0 insertions, 0 deletions