[RFAv2] Fix buffer overflow regression due to minsym malloc-ed instead of obstack-ed.

Tom Tromey tom@tromey.com
Tue Mar 26 19:20:00 GMT 2019


>>>>> "Simon" == Simon Marchi <simark@simark.ca> writes:

>> and have the '< last' conditions below then be '<= last'.
>> 
>> That makes more clear for me that we handle the last
>> element of the array.

Simon> This, or name the variable "past_the_end" or something like that.

Perhaps I'll use past_the_end and then use !=, since that seems to be
the C++ iterator style.

Tom



More information about the Gdb-patches mailing list