The binutils-2_33-branch branch has been updated by Alan Modra <email address hidden>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a11b3493ca2d5aabdc218197b92026098d7e2f57
commit a11b3493ca2d5aabdc218197b92026098d7e2f57 Author: Alan Modra <email address hidden> Date: Mon Sep 23 08:53:07 2019 +0930
PR25018, readelf crash on 32bits
Pointer comparisons after adding an offset just don't work to catch overflow when the offset is a larger type than the pointer.
PR 25018 * dwarf.c (get_type_signedness): Delete ineffective pointer comparison check. Properly range check uvalue offset on recursive call. (read_and_display_attr_value): Range check uvalue offset before calling get_type_signedness.
(cherry picked from commit b3fe587ed2c78d46132bd33e14f42449d410354b)
The binutils- 2_33-branch branch has been updated by Alan Modra <email address hidden>:
https:/ /sourceware. org/git/ gitweb. cgi?p=binutils- gdb.git; h=a11b3493ca2d5 aabdc218197b920 26098d7e2f57
commit a11b3493ca2d5aa bdc218197b92026 098d7e2f57
Author: Alan Modra <email address hidden>
Date: Mon Sep 23 08:53:07 2019 +0930
PR25018, readelf crash on 32bits
Pointer comparisons after adding an offset just don't work to catch
overflow when the offset is a larger type than the pointer.
PR 25018 signedness) : Delete ineffective pointer and_display_ attr_value) : Range check uvalue offset before signedness.
* dwarf.c (get_type_
comparison check. Properly range check uvalue offset on
recursive call.
(read_
calling get_type_
(cherry picked from commit b3fe587ed2c78d4 6132bd33e14f424 49d410354b)