This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [patch RFC] Fix PR binutils/2584
Alan Modra <amodra@bigpond.net.au> wrote:
>> while (len--)
>> value = value << 4 | hex_value(*src++);
>
> You missed checking for a valid hex number here. Otherwise the patch
> looks OK.
Oops. I'll change that lines to
while (len--)
{
if (!ISHEX (*src))
return FALSE;
value = value << 4 | hex_value (*src++);
}
and commit the patch after the test. Thanks for reviewing.
Regards,
kaz