Details
-
Bug
-
Resolution: Done
-
Minor - P4
-
None
Description
A base of "0" means "auto-detect" in standard strtoll, but doesn't work with bson_ascii_strtoll:
strtoll ("010", &endptr, 0); -> 8
|
strtoll ("010", &endptr, 0); -> 0, errno is EINVAL
|
Explicitly setting the base to 10 doesn't override octal number parsing properly:
strtoll ("08", &endptr, 10); -> 8
|
bson_ascii_strtoll ("08", &endptr, 10); -> 0, errno is EINVAL
|