1 20.12 3 4 * Address security issues: 5 * CVE-2013-6371: hash collision denial of service 6 * CVE-2013-6370: buffer overflow if size_t is larger than int 7 8 * Avoid potential overflow in json_object_get_double 9 10 * Eliminate the mc_abort() function and MC_ABORT macro. 11 12 * Make the json_tokener_errors array local. It has been deprecated for 13 a while, and json_tokener_error_desc() should be used instead. 14 15 * change the floating point output format to %.17g so values with 16 more than 6 digits show up in the output. 17 18 * Remove the old libjson.so name compatibility support. The library is 19 only created as libjson-c.so now and headers are only installed 20 into the ${prefix}/json-c directory. 21 22 * When supported by the linker, add the -Bsymbolic-functions flag. 23 24 * Various changes to fix the build on MSVC. 25 26 * Make strict mode more strict: 27 * number must not start with 0 28 * no single-quote strings 29 * no comments 30 * trailing char not allowed 31 * only allow lowercase literals 32 33 * Added a json_object_new_double_s() convenience function to allow 34 an exact string representation of a double to be specified when 35 creating the object and use it in json_tokener_parse_ex() so 36 a re-serialized object more exactly matches the input. 37 38 * Add support NaN and Infinity 39 40 410.11 42 43 * IMPORTANT: the name of the library has changed to libjson-c.so and 44 the header files are now in include/json-c. 45 The pkgconfig name has also changed from json to json-c. 46 You should change your build to use appropriate -I and -l options. 47 A compatibility shim is in place so builds using the old name will 48 continue to work, but that will be removed in the next release. 49 * Maximum recursion depth is now a runtime option. 50 json_tokener_new() is provided for compatibility. 51 json_tokener_new_ex(depth) 52 * Include json_object_iterator.h in the installed headers. 53 * Add support for building on Android. 54 * Rewrite json_object_object_add to replace just the value if the key already exists so keys remain valid. 55 * Make it safe to delete keys while iterating with the json_object_object_foreach macro. 56 * Add a json_set_serializer() function to allow the string output of a json_object to be customized. 57 * Make float parsing locale independent. 58 * Add a json_tokener_set_flags() function and a JSON_TOKENER_STRICT flag. 59 * Enable -Werror when building. 60 * speed improvements to parsing 64-bit integers on systems with working sscanf 61 * Add a json_object_object_length function. 62 * Fix a bug (buffer overrun) when expanding arrays to more than 64 entries. 63 640.10 65 66 * Add a json_object_to_json_string_ext() function to allow output to be 67 formatted in a more human readable form. 68 * Add json_object_object_get_ex(), a NULL-safe get object method, to be able 69 to distinguish between a key not present and the value being NULL. 70 * Add an alternative iterator implementation, see json_object_iterator.h 71 * Make json_object_iter public to enable external use of the 72 json_object_object_foreachC macro. 73 * Add a printbuf_memset() function to provide an effecient way to set and 74 append things like whitespace indentation. 75 * Adjust json_object_is_type and json_object_get_type so they return 76 json_type_null for NULL objects and handle NULL passed to 77 json_objct_object_get(). 78 * Rename boolean type to json_bool. 79 * Fix various compile issues for Visual Studio and MinGW. 80 * Allow json_tokener_parse_ex() to be re-used to parse multiple object. 81 Also, fix some parsing issues with capitalized hexadecimal numbers and 82 number in E notation. 83 * Add json_tokener_get_error() and json_tokener_error_desc() to better 84 encapsulate the process of retrieving errors while parsing. 85 * Various improvements to the documentation of many functions. 86 * Add new json_object_array_sort() function. 87 * Fix a bug in json_object_get_int(), which would incorrectly return 0 88 when called on a string type object. 89 Eric Haszlakiewicz 90 * Add a json_type_to_name() function. 91 Eric Haszlakiewicz 92 * Add a json_tokener_parse_verbose() function. 93 Jehiah Czebotar 94 * Improve support for null bytes within JSON strings. 95 Jehiah Czebotar 96 * Fix file descriptor leak if memory allocation fails in json_util 97 Zachary Blair, zack_blair at hotmail dot com 98 * Add int64 support. Two new functions json_object_net_int64 and 99 json_object_get_int64. Binary compatibility preserved. 100 Eric Haszlakiewicz, EHASZLA at transunion com 101 Rui Miguel Silva Seabra, rms at 1407 dot org 102 * Fix subtle bug in linkhash where lookup could hang after all slots 103 were filled then successively freed. 104 Spotted by Jean-Marc Naud, j dash m at newtraxtech dot com 105 * Make json_object_from_file take const char *filename 106 Spotted by Vikram Raj V, vsagar at attinteractive dot com 107 * Add handling of surrogate pairs (json_tokener.c, test4.c, Makefile.am) 108 Brent Miller, bdmiller at yahoo dash inc dot com 109 * Correction to comment describing printbuf_memappend in printbuf.h 110 Brent Miller, bdmiller at yahoo dash inc dot com 111 1120.9 113 * Add README.html README-WIN32.html config.h.win32 to Makefile.am 114 Michael Clark, <michael@metaparadigm.com> 115 * Add const qualifier to the json_tokener_parse functions 116 Eric Haszlakiewicz, EHASZLA at transunion dot com 117 * Rename min and max so we can never clash with C or C++ std library 118 Ian Atha, thatha at yahoo dash inc dot com 119 * Fix any noticeable spelling or grammar errors. 120 * Make sure every va_start has a va_end. 121 * Check all pointers for validity. 122 Erik Hovland, erik at hovland dot org 123 * Fix json_object_get_boolean to return false for empty string 124 Spotted by Vitaly Kruglikov, Vitaly dot Kruglikov at palm dot com 125 * optimizations to json_tokener_parse_ex(), printbuf_memappend() 126 Brent Miller, bdmiller at yahoo dash inc dot com 127 * Disable REFCOUNT_DEBUG by default in json_object.c 128 * Don't use this as a variable, so we can compile with a C++ compiler 129 * Add casts from void* to type of assignment when using malloc 130 * Add #ifdef __cplusplus guards to all of the headers 131 * Add typedefs for json_object, json_tokener, array_list, printbuf, lh_table 132 Michael Clark, <michael@metaparadigm.com> 133 * Null pointer dereference fix. Fix json_object_get_boolean strlen test 134 to not return TRUE for zero length string. Remove redundant includes. 135 Erik Hovland, erik at hovland dot org 136 * Fixed warning reported by adding -Wstrict-prototypes 137 -Wold-style-definition to the compilatin flags. 138 Dotan Barak, dotanba at gmail dot com 139 * Add const correctness to public interfaces 140 Gerard Krol, g dot c dot krol at student dot tudelft dot nl 141 1420.8 143 * Add va_end for every va_start 144 Dotan Barak, dotanba at gmail dot com 145 * Add macros to enable compiling out debug code 146 Geoffrey Young, geoff at modperlcookbook dot org 147 * Fix bug with use of capital E in numbers with exponents 148 Mateusz Loskot, mateusz at loskot dot net 149 * Add stddef.h include 150 * Patch allows for json-c compile with -Werror and not fail due to 151 -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations 152 Geoffrey Young, geoff at modperlcookbook dot org 153 1540.7 155 * Add escaping of backslash to json output 156 * Add escaping of foward slash on tokenizing and output 157 * Changes to internal tokenizer from using recursion to 158 using a depth state structure to allow incremental parsing 159 1600.6 161 * Fix bug in escaping of control characters 162 Johan Bj�rklund, johbjo09 at kth dot se 163 * Remove include "config.h" from headers (should only 164 be included from .c files) 165 Michael Clark <michael@metaparadigm.com> 166 1670.5 168 * Make headers C++ compatible by change *this to *obj 169 * Add ifdef C++ extern "C" to headers 170 * Use simpler definition of min and max in bits.h 171 Larry Lansing, llansing at fuzzynerd dot com 172 173 * Remove automake 1.6 requirement 174 * Move autogen commands into autogen.sh. Update README 175 * Remove error pointer special case for Windows 176 * Change license from LGPL to MIT 177 Michael Clark <michael@metaparadigm.com> 178 1790.4 180 * Fix additional error case in object parsing 181 * Add back sign reversal in nested object parse as error pointer 182 value is negative, while error value is positive. 183 Michael Clark <michael@metaparadigm.com> 184 1850.3 186 * fix pointer arithmetic bug for error pointer check in is_error() macro 187 * fix type passed to printbuf_memappend in json_tokener 188 * update autotools bootstrap instructions in README 189 Michael Clark <michael@metaparadigm.com> 190 1910.2 192 * printbuf.c - C. Watford (christopher.watford@gmail.com) 193 Added a Win32/Win64 compliant implementation of vasprintf 194 * debug.c - C. Watford (christopher.watford@gmail.com) 195 Removed usage of vsyslog on Win32/Win64 systems, needs to be handled 196 by a configure script 197 * json_object.c - C. Watford (christopher.watford@gmail.com) 198 Added scope operator to wrap usage of json_object_object_foreach, this 199 needs to be rethought to be more ANSI C friendly 200 * json_object.h - C. Watford (christopher.watford@gmail.com) 201 Added Microsoft C friendly version of json_object_object_foreach 202 * json_tokener.c - C. Watford (christopher.watford@gmail.com) 203 Added a Win32/Win64 compliant implementation of strndup 204 * json_util.c - C. Watford (christopher.watford@gmail.com) 205 Added cast and mask to suffice size_t v. unsigned int conversion 206 correctness 207 * json_tokener.c - sign reversal issue on error info for nested object parse 208 spotted by Johan Bj�rklund (johbjo09 at kth.se) 209 * json_object.c - escape " in json_escape_str 210 * Change to automake and libtool to build shared and static library 211 Michael Clark <michael@metaparadigm.com> 212 2130.1 214 * initial release 215