aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-arm.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-05-15 11:24:09 +0930
committerAlan Modra <amodra@gmail.com>2019-05-15 16:28:14 +0930
commit8f02ae5bac22b8d7f57f233ca1957ef9dbe751ab (patch)
tree2a985230a419770d3d7c958e58798c60af85a120 /bfd/elf32-arm.c
parentded12894f5a2836b06c997b899d04c9f692004c1 (diff)
downloadgdb-8f02ae5bac22b8d7f57f233ca1957ef9dbe751ab.zip
gdb-8f02ae5bac22b8d7f57f233ca1957ef9dbe751ab.tar.gz
gdb-8f02ae5bac22b8d7f57f233ca1957ef9dbe751ab.tar.bz2
.file file number checking
This adds another test for file numbers given in .file directives, checking that the value can be represented as an unsigned int and that a memory allocation expression doesn't overflow. I removed a test added recently since an earlier test (num < 1) already covers the (num < 0) case. * dwarf2dbg.c: Whitespace fixes. (get_filenum): Don't strdup "file". Adjust error message. (dwarf2_directive_filename): Use an unsigned type for "num". Catch truncation of file number and overflow of get_filenum XRESIZEVEC multiplication. Delete dead code.
Diffstat (limited to 'bfd/elf32-arm.c')
0 files changed, 0 insertions, 0 deletions