30 Commits (7e3eba72dbf7d82af6d9bda0d1c113572a2e6b30)

Author SHA1 Message Date
  Tobias Stoeckmann 369e8477d2 Validate size arguments in arraylist functions. 5 years ago
  Eric Haszlakiewicz e26a1195f4 Add json_object_array_shrink() (and array_list_shrink()) and use it in json_tokener to minimize the amount of memory used. This results in a 39%-50% reduction in memory use (peak RSS, peak heap usage) on the jc-bench benchmark and 9% shorter runtime. 5 years ago
  Eric Haszlakiewicz 4a546e7b2f In arraylist, use malloc instead of calloc, avoid clearing with memeset until we really need to, and micro-optimize array_list_add(). 5 years ago
  Tobias Stoeckmann 099016b7e8 Protect array_list_del_idx against size_t overflow. 5 years ago
  dota17 8b162c4b89 clang-format the files 5 years ago
  Robert 5d9b8e0fef
Changed order of calloc args to match stdlib (2) 5 years ago
  max 7a4759f165 arraylist: Fix names of parameters for callback function 7 years ago
  Eric Haszlakiewicz 95dff31951 Issue #351: don't redefine SIZE_T_MAX if it's already defined. 8 years ago
  Eric Haszlakiewicz fd9b3b2260 Issue #332: fix a long-standing bug in array_list_put_idx() where it would attempt to free previously free'd entries due to not checking the current array length. 8 years ago
  Eric Haszlakiewicz 8157784483 Issue #295: also check if size_t is the size of long long, to help support 64-bit Windows platforms. 8 years ago
  Eric Haszlakiewicz 996be85843 Fix a few places that needed adjustment for the size_t changes, including updating the range checks to use a calculated SIZE_T_MAX. 9 years ago
  Eric Haszlakiewicz 9a2915ce66 Merge branch 'fixes-for-upstream' of https://github.com/doctaweeks/json-c into doctaweeks-fixes-for-upstream 9 years ago
  Eric Haszlakiewicz 1fb87cd196 Merge branch 'master' of https://github.com/Protovision/json-c into Protovision-master 9 years ago
  Even Rouault 77a4276a8c Fix various potential null ptr deref and int32 overflows 9 years ago
  Daniel M. Weeks 45c56b80c4 Use size_t for array list length and size 11 years ago
  Mark Swoope cdca9d3c8e Added array_list_del_idx and json_object_array_del_idx 10 years ago
  Eric Haszlakiewicz 484ca368f0 Slight style tweaks to the bsearch changest. 10 years ago
  Alexander Dahl 2f5789bdef add bsearch for arrays 11 years ago
  Eric Haszlakiewicz d4e81f9ec8 Move the json_min() and json_max() macros to json_util.h and mark everything else in bits.h deprecated. 11 years ago
  Eric Haszlakiewicz a789601e6d Merge pull request #27 from OBI-1/master 13 years ago
  Mateusz Loskot a6f39a3c0c Replaced #if HAVE_X with #ifdef HAVE_X as the former test is troublemaker with #define HAVE_X where #define HAVE_X 1|0 is meant. 13 years ago
  OBI-1 b6ff1c2f71 array_list_expand_internal needs length, not index. 13 years ago
  Frederik Deweerdt c43871c866 Add new json_object_array_sort function 14 years ago
  Michael Clark 7fb9b03ffd * Rename min and max so we can never clash with C or C++ std library 16 years ago
  Michael Clark aaec1ef3c5 * Don't use this as a variable, so we can compile with a C++ compiler 16 years ago
  Michael Clark 266a3fd301 * Don't use this as a variable, so we can compile with a C++ compiler 16 years ago
  Michael Clark 22dee7cb59 * Null pointer dereference fix. Fix json_object_get_boolean strlen test 16 years ago
  Michael Clark f6a6e486ff * Make headers C++ compatible by change *this to *obj 18 years ago
  Michael Clark 4504df7117 * printbuf.c - C. Watford (christopher dot watford at gmail dot com) 18 years ago
  Michael Clark f0d08887b8 import of version 0.1 18 years ago