]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gas/ChangeLog
.file file number checking
authorAlan Modra <amodra@gmail.com>
Wed, 15 May 2019 01:54:09 +0000 (11:24 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 15 May 2019 06:58:14 +0000 (16:28 +0930)
commit8f02ae5bac22b8d7f57f233ca1957ef9dbe751ab
tree2a985230a419770d3d7c958e58798c60af85a120
parentded12894f5a2836b06c997b899d04c9f692004c1
.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.
gas/ChangeLog
gas/dwarf2dbg.c