aboutsummaryrefslogtreecommitdiff
path: root/sim/rl78
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-10-29 14:16:29 +1030
committerAlan Modra <amodra@gmail.com>2022-10-29 15:23:58 +1030
commitbb94ac4f95dd11c87d84eea533fe4f3218a48583 (patch)
tree52bbffbb1de5fc21ac93e450f473c2eba62802b9 /sim/rl78
parentc5d4b1b6046a77b04ad180d0974221371779599a (diff)
downloadgdb-bb94ac4f95dd11c87d84eea533fe4f3218a48583.zip
gdb-bb94ac4f95dd11c87d84eea533fe4f3218a48583.tar.gz
gdb-bb94ac4f95dd11c87d84eea533fe4f3218a48583.tar.bz2
pef: sanity check before malloc
And do the sanity check in a way that can't overflow. * pef.c (bfd_pef_parse_function_stubs): Sanity check header imported_library_count and total_imported_symbol_count before allocating memory.
Diffstat (limited to 'sim/rl78')
0 files changed, 0 insertions, 0 deletions