132 Commits (master)

Author SHA1 Message Date
  Eric Haszlakiewicz f8c632f579 Issue #407: fix incorrect casts in calls to ctype functions (isdigit and isspace) so we don't crash when asserts are enabled on certain platforms and characters > 128 are parsed. 7 years ago
  Eric Haszlakiewicz 11ab365324 Deprecated a few typedefs, add docs on json_object_iter, move json_number_chars and json_hex-chars to json_object_private.h. 7 years ago
  Eric Haszlakiewicz 0e7ec2ffcd Add cast to int on tolower() to fix warnings about array subscripts. 7 years ago
  Eric Haszlakiewicz f81da5e57a Rewrite the json_tokener_state_inf handling in json_tokener to be simpler, and avoid needless copying of the input into a temporary buffer. 7 years ago
  Eric Haszlakiewicz 48f7e389fb Fix parsing of "-Infinity" when the "-" and "Infinity" are split across multiple calls. 7 years ago
  Eric Haszlakiewicz 4d1e0b4409 Issue #371: fix parsing of "-Infinity" (although in a somewhat different location than PR#372 used), and add a case to test_parse to check for this. 7 years ago
  Haffon b301f4ea01 rollback api to 0.12 8 years ago
  Haffon 3141c3976b 1.make it can been compiled with Visual Studio 2010 8 years ago
  marxin 014924ba89 Add FALLTHRU comment to handle GCC7 warnings. 8 years ago
  Alexandru Ardelean 8cb86a583a strdup_compat.h: re-spin this compat header ; use math_compat.h as template 9 years ago
  Emmanuele Bassi 7601f20d70 Revert "compat/strdup.h: move common compat check for strdup() to own file" 9 years ago
  Alexandru Ardelean aaba8c1080 compat/strdup.h: move common compat check for strdup() to own file 9 years ago
  Eric Haszlakiewicz 36a28fcb0c Issue #275: fix out of bounds read when handling unicode surrogate pairs. 9 years ago
  Eric Haszlakiewicz 4d62de3898 Revert bogus change to json_object_get() made in f40b08d8 that caused it to always return NULL. (Issue #259) 9 years ago
  Nicola Spanti (RyDroid) f40b08d8f0 Minor changes in C source code 9 years ago
  Eric Haszlakiewicz 9688f343a5 Issue #246: Include xlocale.h too, to get locale_t defined, since not all OSes include that in locale.h 9 years ago
  Eric Haszlakiewicz fa76e4a8c9 Issue #195: Actually call uselocale() in the new locale handling code in json_tokener. 9 years ago
  Eric Haszlakiewicz 4091b9c87e Issue #195: use uselocale() instead of setlocale() in json_tokener to behave better in threaded environments. 9 years ago
  Even Rouault 77a4276a8c Fix various potential null ptr deref and int32 overflows 9 years ago
  Anmol Sarma 467102fa78 Remove superfluous NULL checks 10 years ago
  Anmol Sarma f37b0a10a5 Fix possible memory leak 10 years ago
  James Myatt 9be71700eb json_tokener requires INF and NAN 10 years ago
  Eric Haszlakiewicz 68d856f618 Merge pull request #168 from bugness-chl/master 10 years ago
  chl 99d8fc975e Tightening the number parsing algorithm 10 years ago
  Michael Vetter fcf5ad1bd6 Remove trailing whitespace 11 years ago
  Eric Haszlakiewicz d4e81f9ec8 Move the json_min() and json_max() macros to json_util.h and mark everything else in bits.h deprecated. 11 years ago
  Petar Koretić 259c5c0b5f Remove unused variable 'size' 11 years ago
  Michael Clark 64e36901a0 Patch to address the following issues: 11 years ago
  Eric Haszlakiewicz f9136f6852 Make the json_tokener_errors array local. It has been deprecated for a while, and json_tokener_error_desc() should be used instead. 11 years ago
  Eric Haszlakiewicz 05da316b9c Issue #103: allow Infinity and -Infinity to be parsed. 11 years ago
  Markus Stenberg a1c8991e13 nan function requires -lm on some platforms; use of NAN is better, if available. 11 years ago
  Eric Haszlakiewicz 0eedf3802f Issue#102 - add support for parsing "NaN". 11 years ago
  Eric Haszlakiewicz 020fa65724 Merge pull request #112 from TazeTSchnitzel/LowercaseLiterals 11 years ago
  Eric Haszlakiewicz 56df93d128 Fix Issue #111: Fix off-by-one error when range checking the input to json_tokener_error_desc(). 11 years ago
  Andrea Faulds bda0540cb9 Only allow lowercase literals in STRICT mode 12 years ago
  Eric Haszlakiewicz 51993c28c2 Added a json_object_new_double_s() convenience function to allow an exact string representation of a double to be specified when creating the object and use it in json_tokener_parse_ex() so a re-serialized object more exactly matches the input. 12 years ago
  Eric Haszlakiewicz ef43fe3571 Merge pull request #96 from rouault/remove_strdnup 12 years ago
  Eric Haszlakiewicz 02aa6f01f4 Merge pull request #94 from remicollet/issue-strict2 12 years ago
  Even Rouault 86dd55a74a Fix potential out-of-bounds read in json_tokener_error_desc 12 years ago
  Remi Collet 4039f91cab trailing char not allowed in strict mode 12 years ago
  Remi Collet 87fa32dfe0 no comment in strict mode 12 years ago
  Even Rouault 1a957c2edc Remove redefinition of strndup() which is no longer used in the codebase 12 years ago
  Remi Collet a07ef3d197 no single-quote string in strict mode 12 years ago
  Eric Haszlakiewicz d032aad1f4 Minor spell check. 12 years ago
  Remi Collet e9ee4ae18a in strick mode, number must not start with 0 12 years ago
  Eric Haszlakiewicz e8161a11bb Issue #15: add a way to set a JSON_TOKENER_STRICT flag to forbid commas at the end of arrays and objects. 12 years ago
  William Dignazio 32eddd66f5 Fix broken build by using ADVANCE_CHAR macro return. 12 years ago
  William Dignazio bb492d4d69 Rename misnomer POP_CHAR to PEEK_CHAR. 12 years ago
  Eric Haszlakiewicz 5b36a432c8 Merge branch 'remicollet-issue-float' 12 years ago
  Eric Haszlakiewicz ca8b27d183 Enable -Werror and fix a number of minor warnings that existed. 12 years ago