aboutsummaryrefslogtreecommitdiff
path: root/src/memory.c
AgeCommit message (Collapse)AuthorFilesLines
2019-10-21Run clang-format on *.c, *.hPetri Lehtinen1-17/+9
2016-09-18Update copyrights for 2016Petri Lehtinen1-1/+1
2015-12-21Add json_get_alloc_funcs() to allow alloc function fetchingNathaniel McCallum1-0/+8
This is particularly useful in modular situations where the allocation functions are either unknown or private. For instance, in such cases, the caller of json_dumps() has no way to free the returned buffer.
2014-01-28Update copyrights for 2014Petri Lehtinen1-1/+1
2013-09-27Support \u0000 - add size_t string lengths to API, load and dump \u000, etc.Chip Salzenberg1-6/+11
Also: Steal strings during parsing for half the mallocs! Change all input-caused assertions to errors. No crashes please, we're programmers.
2013-08-27Replace strcpy with memcpyOlivier Langlois1-1/+1
Since len is known, the copy function does not need to check byte by byte the end of the string. Signed-off-by: Olivier Langlois <olivier@olivierlanglois.net>
2013-07-23Update copyrights for 2013Petri Lehtinen1-1/+1
2013-07-21Fix integer overflow in jsonp_strdup()Petri Lehtinen1-1/+6
Fixes #129.
2012-04-29Support building on WindowsPetri Lehtinen1-1/+1
Jansson now builds correctly with Visual C++ Express 2010.
2012-03-20Update copyright notices for 2012Petri Lehtinen1-2/+2
2011-02-17Add custom memory allocationPetri Lehtinen1-0/+51
Thanks to Basile Starynkevitch for the suggestion and initial patch. Thanks to Jonathan Landis and Deron Meranda for showing how this can be utilized for implementing secure memory operations.