Fix unsigned overflow in minsyms reader.
authorJohn Baldwin <jhb@FreeBSD.org>
Fri, 9 Nov 2018 19:44:20 +0000 (11:44 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Fri, 9 Nov 2018 19:44:20 +0000 (11:44 -0800)
commit9c122c7f9c8260d2cceb1e8f29d69607531f43ba
tree7cfc3723e505de7edd8fad4e1654086477fc3d55
parent4b905ae1b4d5f90e5737ee01ab4b7149be8c1fe5
Fix unsigned overflow in minsyms reader.

Use a ssize_t helper variable for the number of bytes to shrink the
msymbols obstack rather than relying on unsigned overflow to shrink
the size of the obstack.

gdb/ChangeLog:

* minsyms.c (minimal_symbol_reader::install): Fix unsigned
overflow.
gdb/ChangeLog
gdb/minsyms.c