platform_system_core/base/include/android-base
Tom Cherry 8e3f0b1b2a Fix two ParseInt edge cases
1) ParseInt and ParseUint accept strings that have spaces followed by
   a valid number, however the base check for determining hex numbers
   does not take this into account currently, but now does this this
   change.
2) ParseUint rejects negative numbers except in the case that the
   template argument is unsigned long long.  That is a mistake; it
   should reject negative numbers in all cases and this change does
   that by rejecting any string with a - prefix.

Bug: 112668205
Test: new (and old) unit tests
Change-Id: I0179b42e50adc1b169cf0e6d830283b71210a029
2018-08-22 15:02:57 -07:00
..
chrono_utils.h libbase: switch to #pragma once. 2018-06-26 17:17:41 -07:00
endian.h libbase: switch to #pragma once. 2018-06-26 17:17:41 -07:00
errors.h libbase: switch to #pragma once. 2018-06-26 17:17:41 -07:00
file.h libbase: switch to #pragma once. 2018-06-26 17:17:41 -07:00
logging.h Remove unused logging symbols. 2018-07-31 16:33:38 -07:00
macros.h libbase: assume clang. 2018-07-02 10:53:22 -07:00
memory.h libbase: switch to #pragma once. 2018-06-26 17:17:41 -07:00
parsedouble.h ParseFloat/ParseDouble, also take std::string 2018-08-09 10:49:45 -07:00
parseint.h Fix two ParseInt edge cases 2018-08-22 15:02:57 -07:00
parsenetaddress.h libbase: switch to #pragma once. 2018-06-26 17:17:41 -07:00
properties.h libbase: switch to #pragma once. 2018-06-26 17:17:41 -07:00
quick_exit.h base: add quick_exit emulation. 2016-09-13 17:54:50 -07:00
scopeguard.h libbase: switch to #pragma once. 2018-06-26 17:17:41 -07:00
stringprintf.h libbase: switch to #pragma once. 2018-06-26 17:17:41 -07:00
strings.h libbase: switch to #pragma once. 2018-06-26 17:17:41 -07:00
test_utils.h libbase: switch to #pragma once. 2018-06-26 17:17:41 -07:00
thread_annotations.h libbase: assume clang. 2018-07-02 10:53:22 -07:00
threads.h Move libbacktrace off cutils. 2018-07-11 13:55:07 -07:00
unique_fd.h Revert "Revert "base: add support for tagged fd closure to unique_fd."" 2018-07-20 13:50:15 -07:00
utf8.h base: remove execute bit from utf8.h 2018-08-11 12:28:39 -07:00