Fix address violation when reading corrupt DWARF data.
authorNick Clifton <nickc@redhat.com>
Wed, 21 Jun 2017 17:05:44 +0000 (18:05 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 21 Jun 2017 17:05:44 +0000 (18:05 +0100)
commit7f2c8a1d37af46c46828909b7b748c79aa4b7ff0
tree09ade7d4590196f880186beeac8310999778cb8e
parent2c6b98ea6fcc1358639253d4e96c9b55a672fb0c
Fix address violation when reading corrupt DWARF data.

PR binutils/21648
* dwarf.c (LEB): Rename to SKIP_ULEB and READ_ULEB.  Add check for
reading a value that is too big for the containing variable.
(SLEB): Rename to SKIP_SLEB and READ_SLEB.  Add similar check.
Replace uses of LEB and SLEB with appropriate new macro.
(display_debug_frames): Use an unsigned int for the 'reg'
variable.  Use a signed long for the 'l' variable.
binutils/ChangeLog
binutils/dwarf.c
This page took 0.025635 seconds and 4 git commands to generate.