ParseInt should use base 10 specifically, to avoid crashing on padded numbers
awbacker opened this issue · comments
Andrew Backer commented
The default implementation uses base: 0
to autodetect the format based on the string itself. This fails for any zero padded integer greater than 7 :-/
Lines 116 to 126 in b291445
While not strictly incorrect, this is parsing CSV data and not golang source code, and I'd be surpriced if there were 0x007
strings in a csv file that were expected to parse as hex, but base:0
supports it.