mirror of
https://github.com/json-c/json-c.git
synced 2026-11-08 22:50:47 +08:00
Fix incremental parsing of invalid numbers with exponents, such as "0e+-" and "12.3E12E12", while still allowing "0e+" in non-strict mode.
Deprecate the json_parse_double() function from json_util.h
This commit is contained in:
1 parent
84e6032883
commit
6eac6986c9
6 files changed
+120
-17
No files matched your search
@@ -103,6 +103,9 @@ JSON_EXPORT const char *json_util_get_last_err(void);
|
||||
/* these parsing helpers return zero on success */
|
||||
JSON_EXPORT int json_parse_int64(const char *buf, int64_t *retval);
|
||||
JSON_EXPORT int json_parse_uint64(const char *buf, uint64_t *retval);
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
JSON_EXPORT int json_parse_double(const char *buf, double *retval);
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user