Parse hexadecimal and octal strings correctly
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Wed, 25 Apr 2012 06:22:39 +0000 (11:52 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Wed, 25 Apr 2012 06:57:03 +0000 (12:27 +0530)
commitceab42c380901dee40dc8b1fda0453b8ca918cc8
tree60f68677ced022ef8e13cd686fac51635875eeaf
parent3ce2865f93d42f4721d58088dd6ab1dac06ea85b
Parse hexadecimal and octal strings correctly

The current implementation of __strtoul_internal seems to only pretend
to support hex and octal strings by detecting a preceding 0x or 0 and
marking base as 8 or 16. When it comes to the actual processing of the
string, it only considers numeric values within, thus breaking hex
values that may have [a-f] in them. Fixed with this commit.
ChangeLog
elf/dl-minimal.c