Max Bruckner
ee3c3bc80e
cJSONUtils_GeneratePatches: Fix multiple removes in arrays
8 years ago
Max Bruckner
609bb75421
cJSON_Utils: Use cJSON_free and cJSON_malloc
8 years ago
Max Bruckner
134ebf5e89
cJSONUtils_ApplyPatches: Handle replacement of root
8 years ago
Max Bruckner
d67b008d4b
decode_array_index_from_pointer: parse manually
This allows checking for leading zeroes and invalid characters after the index
8 years ago
Max Bruckner
c66342d871
cJSON_Utils: Use enum for opcode
8 years ago
Max Bruckner
c960b2b853
cJSON_Utils: Fix size_t support of cJSONUtils_GetPointer
8 years ago
Max Bruckner
3056d85f01
cJSON_Utils: Use new helper function
8 years ago
Max Bruckner
b470d918f3
cJSONUtils: add decode_array_index_from_pointer as common helper function
8 years ago
Max Bruckner
8efb287ae2
cJSONUtils_ApplyPatches: Fail if removal failed
8 years ago
Max Bruckner
a1602f484b
cJSONUtils_ApplyPatches: Don't accept invalid array indices
8 years ago
Max Bruckner
d058a9cd8f
cJSON_ApplyPatches: Don't allow adding to array out of bounds
8 years ago
Max Bruckner
62ba68fc7d
cJSONUtils_ApplyPatches: Fix not accepting arrays
This was completely broken, arrays weren't accepted.
8 years ago
Max Bruckner
281df6997c
Update copyright
8 years ago
Max Bruckner
795c3acabe
cJSON_Utils: Fix potential null pointer dereference
Found by coverity
8 years ago
Max Bruckner
466eb8e3f8
Fix wconversion with old gcc (e.g. 4.3)
8 years ago
Max Bruckner
5f783fff11
cJSON_Utils: Add gcc pragma to use default visibility for system headers
8 years ago
Max Bruckner
b056d7cb74
Add -Wcomma compiler flag
8 years ago
Mike Jerris
039b1cc653
add CJSON_PUBLIC macro to public functions to support visibility and dllimport/dllexport
8 years ago
Max Bruckner
ed8dc53699
cJSON_Utils: Use new typecheck functions
8 years ago
Max Bruckner
c3bd4463be
cJSON_Utils: Guard use of %lu format string for size_t
8 years ago
Max Bruckner
9d7e8f1175
cJSON_Utils: Add casts to unsigned long, fix #103
Thanks @rrvirtual for the suggestion.
8 years ago
Max Bruckner
4047de4f6e
fix potential NULL dereferences found by coverity
8 years ago
Max Bruckner
9ed906758e
fix null pointer dereferences found by coverity
8 years ago
Max Bruckner
3d3bfc6a4d
Compiler flag -Wconversion
Makes type conversions explicit, if they alter a value
8 years ago
Max Bruckner
ecd5678527
Change all internal sizes to size_t
8 years ago
Max Bruckner
28b9ba4334
Change all internal strings to unsigned char*
8 years ago
Max Bruckner
ff0681e4fd
Utils: PatchDetach: Check for invalid patch string
8 years ago
Max Bruckner
a2309a509d
Utils: InplaceDecodePointerString: Check for NULL
8 years ago
Max Bruckner
b88da9b0de
Initialize all variables
8 years ago
Max Bruckner
a5ff796c20
Replace 0 with more expressive NULL or '\0'
8 years ago
Max Bruckner
d47339e274
cJSON_Utils: Fix comparing of cJSON_ types
When comparing the type, it has to be masked with 0xFF because of
cJSON_IsConst and cJSON_IsReference.
8 years ago
Max Bruckner
1dff6f160f
cJSON_Utils: own strdup for C89 compatibility
8 years ago
Max Bruckner
c0b17dc651
reformatting: cJSONUtils_GenerateMergePatch
8 years ago
Max Bruckner
01a813f642
reformatting: cJSONUtils_MergePatch
8 years ago
Max Bruckner
c65514fcb4
reformatting: cJSONUtils_SortObject
8 years ago
Max Bruckner
8964287ec4
reformatting: cJSONUtils_SortList
8 years ago
Max Bruckner
ec9d1cfedb
reformatting: cJSONUtils_GeneratePatches
8 years ago
Max Bruckner
8879ed5dbc
reformatting: cJSONUtils_CompareToPatch
8 years ago
Max Bruckner
52e53acfc3
reformatting: cJSON_AddPatchToArray
8 years ago
Max Bruckner
d6a6abeca0
reformatting: cJSONUtils_GeneratePatch
8 years ago
Max Bruckner
e8a67f0e4b
reformatting: cJSONUtils_ApplyPatches
8 years ago
Max Bruckner
d883f9b9b0
reformatting: cJSONUtils_ApplyPatch
8 years ago
Max Bruckner
284a8017b7
reformatting: cJSONUtils_Compare
8 years ago
Max Bruckner
1235c62235
reformatting: cJSONUtils_PatchDetach
8 years ago
Max Bruckner
a21a124d40
reformatting: cJSONUtils_InplaceDecodePointerString
8 years ago
Max Bruckner
5713edb710
reformatting: cJSON_Utils_GetPointer
NOTE: This can change the assembly slightly, in my case it reordered two
instructions. This is due to the change from:
which = (10 * which) + *pointer++ - '0';
to
which = (10 * which) + (*pointer++ - '0');
This means that after the change, the subtraction runs before the
addition instead of after that. That shouldn't change the behavior
though.
8 years ago
Max Bruckner
158ddceab3
reformatting: cJSONUtils_FindPointerFromObjectTo
8 years ago
Max Bruckner
7771225e35
reformatting: cJSONUtils_PointerEncodedstrcpy
8 years ago
Max Bruckner
3f6716e63a
reformatting: cJSONUtils_PointerEncodedstrlen
8 years ago
Max Bruckner
2f002879c0
reformatting: cJSONUtils_Pstrcasecmp
8 years ago