diff options
| author | Tom Cherry <tomcherry@google.com> | 2018-08-22 14:38:02 -0700 |
|---|---|---|
| committer | Tom Cherry <tomcherry@google.com> | 2018-08-22 15:02:57 -0700 |
| commit | 8e3f0b1b2a0866ef1d5c1ae7f832617ca87f6d84 (patch) | |
| tree | b49ac91e1ad7e471a0c44ee15c05f7bc82146cbe /trusty/coverage/coverage.cpp | |
| parent | 22c1eefb0df8ca42659b8869498622039695e2a2 (diff) | |
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
Diffstat (limited to 'trusty/coverage/coverage.cpp')
0 files changed, 0 insertions, 0 deletions
