256 Commits (7974657c5699416b1195f77f9571d9f46bf608b8)

Author SHA1 Message Date
  Shane F. Carr 7974657c56 Fix code and update tests 2 months ago
  Shane F. Carr dbefb48948 Add tests with current behavior 2 months ago
  Eric Hawicz 7cee5237dc Issue #867 - also disallow control characters in keys 6 months ago
  Simon Resch 0c3588330a Set error codes for truncating int conversions 10 months ago
  Simon Resch 8c13801f2c Explicitly handle NaN values when converting to int 10 months ago
  Eric Hawicz 565f181f65 Fix issue #875: cast to unsigned char so bytes above 0x7f aren't interpreted as negative, which was causing the strict-mode control characters check to incorrectly trigger. 10 months ago
  Eric Hawicz 87900c0a2e Fix the expected output for test_parse 1 year ago
  Eric Hawicz 6bfab90c87 Issue #867: disallow control characters in strict mode. 1 year ago
  Rosen Penev 66f7869219 rename WIN32 to _WIN32 2 years ago
  Rolf Eike Beer 159822dd8a
CMake: request consistent minimum version 2 years ago
  Eric Hawicz 469bc0e4bb Work around a somewhat misleading warning about "a function declaration without a prototype is deprecated in all versions of C" in test1.c 2 years ago
  Eric Hawicz ce3184243a Fix json_patch_apply handling of removing the whole document (i.e. "path":""). 2 years ago
  Eric Hawicz 9dbf2880cc Adjust the behavior of the args passed to json_patch_apply to make it easier to do in place modifications, and add a struct json_patch_error to report more details on failures. 2 years ago
  Eric Hawicz efc530594b Create a json_pointer_private.h and move a few things there, fix test warnings, note array_list_insert_idx is private. 2 years ago
  Alexandru Ardelean 3b8363fcdc tests: test_json_patch: add test suite for JSON patch 4 years ago
  Alexandru Ardelean 1c38dea651 json_pointer: move array out-of-bounds check outside of is_valid_index() 4 years ago
  Alexandru Ardelean d5c5b2caec tests: test1: add test cases for json_object_array_insert_idx() 4 years ago
  Eric Haszlakiewicz d0f32a5a43 Stop linking a copy of _json_c_strerror() (strerror_override.c) into the tests. 2 years ago
  Federico Francescon 1a2fdc49e7 Fixed `test_int_get` expected output 2 years ago
  Federico Francescon b1fb1508ee Added basic tests for `json_object_get_int`, `json_object_get_int64`, `json_object_get_uint64` 2 years ago
  Eric Haszlakiewicz bc35549f90 Update expected output for test_parse, missed in the previous commit. 2 years ago
  Eric Haszlakiewicz d6f46ae104 Explicitly check for integer overflow/underflow when parsing integers with JSON_TOKENER_STRICT. 2 years ago
  Khem Raj 6eca65617a Fix build with clang-15+ 3 years ago
  Dimitri Papadopoulos 9462c0a7b5
Fix typos found by codespell 3 years ago
  Eric Haszlakiewicz bdd5e03d6e Apply some of the fixes from PR #740, although by using size_t instead of castings. 3 years ago
  Eric Haszlakiewicz 253a5fa99d Issue #705: disable locale handling when building for a uClibc system because its duplocale() function (intentionally) crashes. 3 years ago
  Eric Haszlakiewicz 9749b0cb66 When serializing with JSON_C_TO_STRING_PRETTY set, keep the opening and closing curly or square braces on same line for empty objects or arrays. Issue #778. 3 years ago
  Eric Haszlakiewicz 5282e73600 Entirely drop mode bits from open(O_RDONLY) to avoid warnings on certain platforms. Fixes issue #779. 3 years ago
  Eric Haszlakiewicz 22773b1e51 Fix the expected output for test_set_serializer. 3 years ago
  Eric Haszlakiewicz 16208fc01a Add test to check for the memory leak mentioned in issue #781 3 years ago
  Eric Haszlakiewicz 49c3721a5a Unset NDEBUG so assert() is enabled in all tests. One more fix there when building with -DCMAKE_BUILD_TYPE=release. 3 years ago
  Eric Haszlakiewicz 6ba1adf8ef Include the tests and apps directories at the _end_, since order in the 3 years ago
  Eric Haszlakiewicz 46b58ad9e7 Fix issue #764: adjust test_util_file to match new output (changed in 6e53347) 3 years ago
  Tobias Stoeckmann 543a8eb5f9 Fix typos 3 years ago
  Leon Gross 8be2ffdcd7 fix cmake version for tests 4 years ago
  Alexandru Ardelean 8abeebc9b2 json_pointer: allow the feature to be disabled 4 years ago
  Alexandru Ardelean 1f8b64f62c tests: CMakeLists.txt: move test names to variable 4 years ago
  Tobias Stoeckmann 7af593c140 Fixed test1 regression. 5 years ago
  Eric Hawicz eb08a92218
Merge pull request #660 from stoeckmann/arraylist 5 years ago
  Tobias Stoeckmann 369e8477d2 Validate size arguments in arraylist functions. 5 years ago
  Tobias Stoeckmann 4298431150 Properly format errnos in _json_c_strerror 5 years ago
  Eric Haszlakiewicz 2b439ea598 Fix json_object_get_boolean() doc for the object and array cases (always returns 0), and add those cases to the test_cast test. 5 years ago
  Eric Haszlakiewicz 6068d3f6d1 Change the strerror_override handling to check $_JSON_C_STRERROR_OVERRIDE instead of using a variable, so we don't need to export it. 5 years ago
  Eric Haszlakiewicz 34334e5d3f Replace one call to json_object_new_array() with json_object_new_array_ext() to ensure it at least minimally works. 5 years ago
  Eric Haszlakiewicz a4e3700972 Fix code formatting 5 years ago
  Eric Haszlakiewicz 5f3bf70f03 Make sure TEST_PARSE_CHUNKSIZE is valid if it's set. 5 years ago
  Eric Haszlakiewicz f23486a321 In the json_tokener_state_number case, explicitly adjust what "number" characters are allowed based on the exact micro-state that we're in, and check for invalid following characters in a different way, to allow a valid json_type_number object to be returned at the top level. 5 years ago
  Eric Haszlakiewicz 6eac6986c9 Fix incremental parsing of invalid numbers with exponents, such as "0e+-" and "12.3E12E12", while still allowing "0e+" in non-strict mode. 5 years ago
  Eric Haszlakiewicz 7a72805e34 Fix memory leak in test_parse's single_incremental_parse(). 5 years ago
  Eric Haszlakiewicz a68566bf6a Issue #616: Change the parsing of surrogate pairs in unicode escapes so it uses a couple of additional states instead of assuming the low surrogate is already present, to ensure that we correctly handle various cases of incremental parsing. 5 years ago