Fix off-by-one bug calling value_cstring
Doug Evans
dje@google.com
Wed Nov 12 15:47:00 GMT 2014
On Sun, Nov 9, 2014 at 2:03 PM, Daniel Colascione <dancol@dancol.org> wrote:
> On 10/08/2014 02:13 AM, Doug Evans wrote:
>> I don't have an answer. If I get to this before someone else I'll
>> pick something, but it might be a few days.
>
> Did you get around to fixing the bug?
Hi.
I haven't had time to yet.
I looked at it a bit.
It seems most(all?) callers of value_cstring work like savestring and
pass a length that doesn't include the trailing NUL, so I'd say let's
stick with that. We still need to fix value_cstring though and add
one to the given length (I presume that's the intended semantics).
More information about the Gdb-patches
mailing list