PR24798, buffer overflow in process_cu_tu_index
authorAlan Modra <amodra@gmail.com>
Fri, 26 Jul 2019 03:28:52 +0000 (12:58 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 26 Jul 2019 03:35:16 +0000 (13:05 +0930)
commit8e2e3c6c346c1c8142e714715e5a86b32f7e31ea
treef37c408660f255113544c75cda01fd0d8dc4580d
parent6dd17ae0f9b0d9fc230e75ce345da9793498554d
PR24798, buffer overflow in process_cu_tu_index

PR 24798
* dwarf.c (process_cu_tu_index): Avoid integer overflow on 64-bit
systems by casting ncols and nslots expressions to size_t.  Display
number of columns and slots before giving up due to buffer overflow.
Use %u to display unsigned ints.  Perform more pointer wrap tests.
binutils/ChangeLog
binutils/dwarf.c
This page took 0.025001 seconds and 4 git commands to generate.