[libc-commits] [PATCH] D109084: [libc] fix strtointeger hex prefix parsing
Michael Jones via Phabricator via libc-commits
libc-commits at lists.llvm.org
Wed Sep 1 13:12:16 PDT 2021
michaelrj created this revision.
michaelrj added a reviewer: sivachandra.
Herald added subscribers: libc-commits, ecnelises, tschuett.
Herald added a project: libc-project.
michaelrj requested review of this revision.
Fix edge case where "0x" would be considered a complete hexadecimal
number for purposes of str_end. Now the hexadecimal prefix needs a valid
digit after it, else just the 0 will be counted as the number.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D109084
Files:
libc/src/__support/str_conv_utils.h
libc/test/src/stdlib/strtol_test.cpp
libc/test/src/stdlib/strtoll_test.cpp
libc/test/src/stdlib/strtoul_test.cpp
libc/test/src/stdlib/strtoull_test.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109084.370035.patch
Type: text/x-patch
Size: 6890 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20210901/3dbd8907/attachment-0001.bin>
More information about the libc-commits
mailing list