diff options
author | Alan Modra <amodra@gmail.com> | 2020-06-01 14:21:50 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-06-01 23:33:28 +0930 |
commit | 2fdb65f247379befd548a33ea185172968b9ebb9 (patch) | |
tree | adc90cec8f4d5c1b596aa7551852f73003f88ec8 /gas/write.c | |
parent | 3c3d03769e4d6fea4c8ee97bf36a2ca7d572461c (diff) | |
download | gdb-2fdb65f247379befd548a33ea185172968b9ebb9.zip gdb-2fdb65f247379befd548a33ea185172968b9ebb9.tar.gz gdb-2fdb65f247379befd548a33ea185172968b9ebb9.tar.bz2 |
alpha-vms: ETIR checks
Better validity checks, and remove a fuzzer vulnerability of sorts that
targeted the store-immediate-repeat command with a zero length but
very large repeat counts to chew cpu.
* vms-alpha.c (_bfd_vms_slurp_etir): Check bound for the current
command against cmd_length, not the end of record. For
ETIR__C_STO_IMMR check size against cmd_length, mask repeat count
to 32-bits and break out on zero size. Add ETIR__C_STC_LP_PSB
cmd_length test.
Diffstat (limited to 'gas/write.c')
0 files changed, 0 insertions, 0 deletions