diff options
author | Tom Tromey <tom@tromey.com> | 2018-07-29 17:29:24 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-10-03 15:19:06 -0600 |
commit | d359392f976d48b04a27e6a09b5b61846b0727f9 (patch) | |
tree | 06193527ab4d4a21de1ffc377ea23d7243d800fc /gdb/c-exp.y | |
parent | 0101665f864383147448c5871a67286a3f7a9a28 (diff) | |
download | gdb-d359392f976d48b04a27e6a09b5b61846b0727f9.zip gdb-d359392f976d48b04a27e6a09b5b61846b0727f9.tar.gz gdb-d359392f976d48b04a27e6a09b5b61846b0727f9.tar.bz2 |
Avoid undefined behavior in read_subrange_type
-fsanitize=undefined pointed out an undefined shift of a negative
value in read_subrange_type. The fix is to do the work in an unsigned
type, where this is defined.
gdb/ChangeLog
2018-10-03 Tom Tromey <tom@tromey.com>
* dwarf2read.c (read_subrange_type): Make "negative_mask"
unsigned.
Diffstat (limited to 'gdb/c-exp.y')
0 files changed, 0 insertions, 0 deletions