PR24898, An out-of-bounds read occured in display_data
authorAlan Modra <amodra@gmail.com>
Mon, 19 Aug 2019 10:54:35 +0000 (20:24 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 19 Aug 2019 11:08:59 +0000 (20:38 +0930)
commitd292364e95fc9c8230b678d9026f285850074c02
tree5a4c285984e140319dfbc82ad9fa6d468fd0baf9
parent903b777ddeb4c11a7de12cab59124e777614edec
PR24898, An out-of-bounds read occured in display_data

Given 32-bit pointers and a 64-bit bfd_size_type, it is relatively
easy to construct a value of augmentation_data_len (eg. 0x100000000)
that won't fail pointer checks but will print without bounds.

PR 24898
* dwarf.c (display_debug_frames): Use the read_cie check and error
for augmentation data length.
binutils/ChangeLog
binutils/dwarf.c