Fix integer overflow problems when reading an ELF binary with corrupt augmentation...
authorNick Clifton <nickc@redhat.com>
Fri, 3 Nov 2017 13:57:15 +0000 (13:57 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 3 Nov 2017 13:57:15 +0000 (13:57 +0000)
commitbf59c5d5f4f5b8b4da1f5f605cfa546f8029b43d
treef5df6f946bf97be72035e6c31dab5f6f7b6a5284
parent3334eba7f4aeaa06926d5f1fb51446c5cea43e42
Fix integer overflow problems when reading an ELF binary with corrupt augmentation data.

PR 22386
* dwarf.c (read_cie): Use bfd_size_type for
augmentation_data_len.
(display_augmentation_data): New function.
(display_debug_frames): Use it.
Check for integer overflow when testing augmentation_data_len.
binutils/ChangeLog
binutils/dwarf.c