diff options
author | Alan Modra <amodra@gmail.com> | 2021-12-16 10:50:58 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-12-16 14:38:47 +1030 |
commit | 05f62e0c9a0b14e211c6b2b6234095b50794b20b (patch) | |
tree | cd7584259707de4b6b561b12e3009cfdf09c5259 /bfd/aout-cris.c | |
parent | 37260e0df0772dd8378afa91ec26fc0419e1ca94 (diff) | |
download | gdb-05f62e0c9a0b14e211c6b2b6234095b50794b20b.zip gdb-05f62e0c9a0b14e211c6b2b6234095b50794b20b.tar.gz gdb-05f62e0c9a0b14e211c6b2b6234095b50794b20b.tar.bz2 |
Re: Fix an undefined behaviour in the BFD library's DWARF parser
Using an unsigned int cast (to 32 bits) on a pointer difference (of
possibly 64 bits) is wrong. Even though it will work on all real
object files, the fuzzers will eventually find this hole.
PR 28687
* dwarf1.c (parse_die): Cast pointer difference to size_t.
Catch another possible pointer overflow.
Diffstat (limited to 'bfd/aout-cris.c')
0 files changed, 0 insertions, 0 deletions