You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

ChangeLog 9.8 kB

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