Max Bruckner
954d61e5e7
Fix #189 , ensure returns an invalid pointer
...
If realloc returns NULL, ensure didn't abort but returned
printbuffer.offset instead. If an attacker can control
printbuffer.offset and also make realloc fail at just the right moment,
this would make cJSON potentially write at an arbitrary memory address.
2017-07-12 23:02:31 +02:00
Max Bruckner
bdd5ff7ad6
misc_tests: Call all functions with NULL pointers
2017-06-28 14:22:42 +02:00
Max Bruckner
9ecc96878f
fix #174 : cJSON_ReplaceItemInObject doesn't copy name
2017-05-22 22:55:05 +02:00
Max Bruckner
8b953d1202
Add cJSON_ReplaceItemViaPointer
2017-05-02 01:18:55 +02:00
Max Bruckner
c24c3e0285
Add cJSON_DetachItemViaPointer
2017-05-01 23:58:04 +02:00
Max Bruckner
28570ad095
Add test for cJSON_SetNumberHelper
2017-04-28 14:41:24 +02:00
Max Bruckner
e0d3a8a265
Limit nesting depth to 1000 and make it configurable.
2017-04-27 01:57:45 +02:00
Max Bruckner
c45dc12fd7
Tests for typecheck functions
2017-02-26 21:54:01 +01:00
Max Bruckner
56b819bfbc
tests: test cJSON_GetObjectItem and cJSON_GetObjectItemCaseSensitive
2017-02-21 11:17:08 +01:00
Max Bruckner
cbbcc91498
tests: cJSON_ArrayForEach
2017-02-21 09:17:49 +01:00