diff options
author | Alan Modra <amodra@gmail.com> | 2022-12-14 12:14:13 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-12-14 13:07:43 +1030 |
commit | d0517d6e333c4b6aaae411648628e2923e1f83aa (patch) | |
tree | 7456c999744e9b20a4d70dfa147dc25868a668e0 /gold | |
parent | bd5efa59305b4f84da4d7ece171acf37ee2c99a4 (diff) | |
download | gdb-d0517d6e333c4b6aaae411648628e2923e1f83aa.zip gdb-d0517d6e333c4b6aaae411648628e2923e1f83aa.tar.gz gdb-d0517d6e333c4b6aaae411648628e2923e1f83aa.tar.bz2 |
asan: signed integer overflow in display_debug_frames
* dwarf.c (struct Frame_Chunk): Make col_offset an int64_t.
Adjust all places allocating col_offset and col_type to use
the size of the array element rather than the size of a type.
(frame_display_row): Adjust printing of col_offset.
(display_debug_frames): Factor out multiplication by
code_factor and data_factor. Avoid signed overflow. Use
64-bit variables.
Diffstat (limited to 'gold')
0 files changed, 0 insertions, 0 deletions