Avoid undefined behavior in read_subrange_type
authorTom Tromey <tom@tromey.com>
Sun, 29 Jul 2018 23:29:24 +0000 (17:29 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 3 Oct 2018 21:19:06 +0000 (15:19 -0600)
commitd359392f976d48b04a27e6a09b5b61846b0727f9
tree06193527ab4d4a21de1ffc377ea23d7243d800fc
parent0101665f864383147448c5871a67286a3f7a9a28
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.
gdb/ChangeLog
gdb/dwarf2read.c
This page took 0.042285 seconds and 4 git commands to generate.