Skip to content
Commit ceab42c3 authored by Siddhesh Poyarekar's avatar Siddhesh Poyarekar
Browse files

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.
parent 3ce2865f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment