Commit Graph

  • c45dc12fd7 Tests for typecheck functions Max Bruckner 2017-02-26 21:54:01 +0100
  • ed8dc53699 cJSON_Utils: Use new typecheck functions Max Bruckner 2017-02-26 21:26:34 +0100
  • c26d53f0d7 Helper function to check the type of an item Max Bruckner 2017-02-26 14:30:50 +0100
  • 29f312dd69 Merge pull request #118 from mjerris/parser Max Bruckner 2017-02-26 13:12:26 +0100
  • 27b949b64a add new helper functions cJSON_GetObjectCstr cJSON_AddChildObj cJSON_AddChildArray and cJSON_AddChildString Mike Jerris 2017-02-23 10:04:23 -0600
  • 72e6e23523 prevent read beyond end of buffer when string ends with malformed utf Mike Jerris 2017-02-23 08:59:25 -0600
  • 6a7aba453f Merge branch 'master' into json_stream Ian Mobley 2017-02-22 10:25:34 -0800
  • 501046247d fix clang-sanitizer warnings Max Bruckner 2017-02-21 15:08:36 +0100
  • 68cd0d4a11 cJSON.c: Pass allocation functions through internal functions Max Bruckner 2017-02-21 14:50:49 +0100
  • 56b819bfbc tests: test cJSON_GetObjectItem and cJSON_GetObjectItemCaseSensitive Max Bruckner 2017-02-21 10:45:22 +0100
  • 605422c60a cJSON: New function cJSON_GetObjectItemCaseSensitive Max Bruckner 2017-02-21 10:43:43 +0100
  • cbbcc91498 tests: cJSON_ArrayForEach Max Bruckner 2017-02-21 09:17:49 +0100
  • b47d0e34ca cJSON_ArrayForEach: Fix handling of NULL pointers Max Bruckner 2017-02-21 09:17:34 +0100
  • bc12c69b54 Merge pull request #114 from DaveGamble/simplify-print Max Bruckner 2017-02-20 23:09:06 +0100
  • 1d42c9bc60 print_object: simplify code Max Bruckner 2017-02-20 16:58:22 +0100
  • b71db93e03 print_object: rename variables Max Bruckner 2017-02-20 15:57:22 +0100
  • 6d5a7c8c40 print_array: simplify code Max Bruckner 2017-02-20 15:12:10 +0100
  • 8c1ed3ab82 update: rename to update_offset and change offset directly Max Bruckner 2017-02-20 15:02:49 +0100
  • f16dd7e028 print_array: rename variables Max Bruckner 2017-02-20 13:58:13 +0100
  • 08770fc246 print_value: rename variables Max Bruckner 2017-02-20 13:30:40 +0100
  • 0ca8587acc print_string_ptr: simplify code Max Bruckner 2017-02-20 13:03:51 +0100
  • 88e38d042f tests: print_string: test if NULL is printed as empty string Max Bruckner 2017-02-20 12:46:38 +0100
  • 6a746a230a print_string: Add more const Max Bruckner 2017-02-20 12:02:56 +0100
  • 1e999352d3 print_string_ptr: rename variables Max Bruckner 2017-02-20 12:02:20 +0100
  • 6815d96617 print_number: rename variables Max Bruckner 2017-02-20 11:41:40 +0100
  • 61921498d0 print_number: remove special case for 0 Max Bruckner 2017-02-20 11:32:53 +0100
  • 4758d62fd4 Merge pull request #113 from DaveGamble/printbuffer-only Max Bruckner 2017-02-20 23:06:58 +0100
  • 1bc1a9748a Merge pull request #112 from DaveGamble/print-tests Max Bruckner 2017-02-20 11:15:53 +0100
  • de36476092 tests: print_value Max Bruckner 2017-02-20 02:43:18 +0100
  • 983a4cd286 tests: parse_objects: Fix name of test Max Bruckner 2017-02-20 02:31:54 +0100
  • b6abef94ff tests: print_object Max Bruckner 2017-02-20 02:30:37 +0100
  • 3d66766231 tests: print_array Max Bruckner 2017-02-20 02:12:13 +0100
  • 924122904e tests: print_number Max Bruckner 2017-02-20 01:25:19 +0100
  • 87691a86e5 cJSON_SetNumberValue: Fix compiler warning with -Waddress Max Bruckner 2017-02-19 19:58:41 +0100
  • 8aa324fdc8 tests: print_string Max Bruckner 2017-02-19 17:25:22 +0100
  • 3c4d309f62 ensure: Don't accept empty printbuffers anymore Max Bruckner 2017-02-19 04:20:21 +0100
  • 9bf531ca05 Remove printing without buffer Max Bruckner 2017-02-19 04:16:57 +0100
  • 80354bdb06 cJSON_Print: Use printbuffer Max Bruckner 2017-02-19 03:57:11 +0100
  • fe2e0956ad Merge pull request #111 from DaveGamble/fuzzing Max Bruckner 2017-02-19 02:44:28 +0100
  • cf71f3d627 fuzzing: script to prepare linux kernel for afl Max Bruckner 2017-02-18 12:51:34 +0100
  • da551c753f fuzzing: Speed up afl using persistent mode (in proccess fuzzing) Max Bruckner 2017-02-18 02:52:38 +0100
  • ae4681b787 fuzzing: use llvm source code instrumentation Max Bruckner 2017-02-18 02:46:36 +0100
  • c5a09a32a9 fuzzing: Fuzz different print methods Max Bruckner 2017-02-18 02:31:42 +0100
  • 4785070ad3 fuzzing: Fuzz printing as well. Max Bruckner 2017-02-18 02:07:12 +0100
  • 0e0cd5bae5 CMake: Add ENABLE_FUZZING and "afl" target Max Bruckner 2017-02-17 15:48:50 +0100
  • 44512f643e Merge pull request #110 from DaveGamble/ensure-improvements Max Bruckner 2017-02-18 12:18:18 +0100
  • 331c18d09a ensure: only memcopy what's necessary Max Bruckner 2017-02-18 11:58:24 +0100
  • 4fff92140e ensure: use realloc if possible Max Bruckner 2017-02-18 03:31:08 +0100
  • fc1d4b07df ensure: if printbuffer is null: cJSON_malloc Max Bruckner 2017-02-18 03:17:57 +0100
  • bd073343fa rename skip -> skip_whitespace Max Bruckner 2017-02-17 19:37:31 +0100
  • 7c722dca5f CMake: Add target "check" that builds and runs tests Max Bruckner 2017-02-17 13:59:26 +0100
  • 4fce9cce86 Release version 1.3.0 v1.3.0 Max Bruckner 2017-02-17 01:42:02 +0100
  • 415962da34 Merge pull request #109 from DaveGamble/simplify-parse Max Bruckner 2017-02-16 21:23:36 +0100
  • b41264d164 Remove uint8_t because it's not part of C89 Max Bruckner 2017-02-16 21:22:43 +0100
  • 0f271dcf63 parse_hex4: make input pointer const Max Bruckner 2017-02-16 20:26:40 +0100
  • ead389aba2 parse_value: improve variable names + const correctness Max Bruckner 2017-02-16 21:01:50 +0100
  • 698dc528f4 parse_object: improve variable names + const correctness Max Bruckner 2017-02-16 20:14:34 +0100
  • 3dc6339025 parse_array: improve variable names + const correctness Max Bruckner 2017-02-16 20:08:53 +0100
  • 15592c50f6 parse_number: improve variable names + const correctness Max Bruckner 2017-02-16 20:02:18 +0100
  • efb5e1bc93 parse_string: Improve const correctnes of pointers Max Bruckner 2017-02-16 20:00:06 +0100
  • ace5047782 parse_string: reduce mental burden when reading the code Max Bruckner 2017-02-16 18:55:27 +0100
  • 03f23738bb parse_object: simplify to one do-while loop Max Bruckner 2017-02-16 02:28:32 +0100
  • 24dbf29360 parse_array: simplify to one do-while loop Max Bruckner 2017-02-16 01:55:45 +0100
  • b6974ecbc9 Makefile: Update compiler options Max Bruckner 2017-02-16 12:52:00 +0100
  • 12b2daccf3 parse_{object,array}: set child only after parsing Max Bruckner 2017-02-16 01:03:38 +0100
  • f8d0c47bdb Remove unnecessary assignment and silence clang analyzer Max Bruckner 2017-02-16 00:31:57 +0100
  • 9f6fa94c91 ensure: replace pow2gt with multiplication by two Max Bruckner 2017-02-16 00:11:34 +0100
  • 123bb1af7b cJSON: prevent incompatible C and header versions Max Bruckner 2017-02-15 23:21:50 +0100
  • cf862d0fed implement AddItemToObject using AddItemToObjectCS Max Bruckner 2017-02-15 21:46:24 +0100
  • 57d105d498 Merge pull request #108 from DaveGamble/cJSON_Invalid Max Bruckner 2017-02-15 21:28:14 +0100
  • 5986edba1d tests: Ensure that failed parsing returns invalid items Max Bruckner 2017-02-15 21:12:10 +0100
  • c6e1a281f9 tests: assertion macros Max Bruckner 2017-02-15 19:57:54 +0100
  • 4f58695ed3 tests: extract common functionality to common.c Max Bruckner 2017-02-15 18:41:55 +0100
  • 3facca4792 parse functions: Only set type after successful Max Bruckner 2017-02-15 16:15:15 +0100
  • cf48ea8175 New Type: cJSON_Invalid Max Bruckner 2017-02-15 16:03:35 +0100
  • 702fd95af3 fix #106: potentially invalid free in cJSON_AddItemToObject Max Bruckner 2017-02-15 20:45:23 +0100
  • 94117a5d23 Fix #105, double free when parse_string fails Max Bruckner 2017-02-15 15:37:38 +0100
  • c3bd4463be cJSON_Utils: Guard use of %lu format string for size_t Max Bruckner 2017-02-15 13:09:32 +0100
  • 9d7e8f1175 cJSON_Utils: Add casts to unsigned long, fix #103 Max Bruckner 2017-02-09 15:09:06 +0100
  • bebc15cf64 Merge d6ea61e6e8 into 4047de4f6e vroehrig 2017-02-08 04:48:45 +0000
  • 4047de4f6e fix potential NULL dereferences found by coverity Max Bruckner 2017-02-08 03:00:44 +0100
  • 49b9336558 Merge pull request #92 from DaveGamble/tests Max Bruckner 2017-02-07 21:50:07 +0100
  • d04a2aeccf README: Document additional CMake options Max Bruckner 2017-02-07 21:44:37 +0100
  • 33e01ae087 Add support for Travis-CI Max Bruckner 2017-01-18 15:37:25 +0100
  • a09defec4c CMake: Add ENABLE_SANITIZERS flag Max Bruckner 2017-02-07 15:07:54 +0100
  • 21c02cd3e5 CMake: Add Valgrind support Max Bruckner 2017-01-18 16:18:35 +0100
  • 5a36b71a80 unity-tests: parse_value Max Bruckner 2017-02-07 20:39:45 +0100
  • 9041570eba unity-tests: parse_object Max Bruckner 2017-02-07 20:24:59 +0100
  • 71b05fd4c2 unity-tests: parse_array Max Bruckner 2017-02-06 16:27:59 +0100
  • 598b609c45 unity-tests: parse_string Max Bruckner 2017-02-04 02:12:10 +0100
  • b0e5209bde unity-tests: test parse_hex4 Max Bruckner 2017-01-17 19:44:38 +0100
  • 7fd536d7e0 unity-tests: parse_number Max Bruckner 2017-01-17 01:53:55 +0100
  • be0951dfa4 Move parse tests from test.c -> parse_example.c Max Bruckner 2017-01-16 15:02:50 +0100
  • 86be961bb5 test.c: remove file related code Max Bruckner 2017-01-16 14:53:16 +0100
  • bb60d6def5 cunity: parse_examples: test example files Max Bruckner 2017-01-16 14:52:01 +0100
  • 896e52255b CMake: Build unity as library Max Bruckner 2017-01-16 14:36:11 +0100
  • 12acc57967 unity: make it work with -Wconversion Max Bruckner 2017-02-06 16:05:35 +0100
  • d19f3ae890 Merge commit '6b9b57be226a505a9c9cdd9ed029f22495ce04ec' as 'tests/unity' Max Bruckner 2017-02-07 21:30:57 +0100
  • 6b9b57be22 Squashed 'tests/unity/' content from commit 1782bab Max Bruckner 2017-02-07 21:30:57 +0100
  • e65ea3a45b Merge pull request #101 from DaveGamble/simplify-correctness Max Bruckner 2017-02-07 21:29:11 +0100