pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/json-c json-c: update to 0.16.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/779b15c75fd7
branches:  trunk
changeset: 377446:779b15c75fd7
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Apr 20 20:32:32 2022 +0000

description:
json-c: update to 0.16.

0.16 (up to commit 66dcdf5, 2022-04-13)
========================================

Deprecated and removed features:
--------------------------------
* JSON_C_OBJECT_KEY_IS_CONSTANT is deprecated in favor of
  JSON_C_OBJECT_ADD_CONSTANT_KEY
* Direct access to lh_table and lh_entry structure members is deprecated.
  Use access functions instead, lh_table_head(), lh_entry_next(), etc...
* Drop REFCOUNT_DEBUG code.

New features
------------
* The 0.16 release introduces no new features

Build changes
-------------
* Add a DISABLE_EXTRA_LIBS option to skip using libbsd
* Add a DISABLE_JSON_POINTER option to skip compiling in json_pointer support.

Significant changes and bug fixes
---------------------------------
* Cap string length at INT_MAX to avoid various issues with very long strings.
* json_object_deep_copy: fix deep copy of strings containing '\0'
* Fix read past end of buffer in the "json_parse" command
* Avoid out of memory accesses in the locally provided vasprintf() function
  (for those platforms that use it)
* Handle allocation failure in json_tokener_new_ex
* Fix use-after-free in json_tokener_new_ex() in the event of printbuf_new() returning NULL
* printbuf_memset(): set gaps to zero - areas within the print buffer which
  have not been initialized by using printbuf_memset
* printbuf: return -1 on invalid arguments (len < 0 or total buffer > INT_MAX)
* sprintbuf(): propagate printbuf_memappend errors back to the caller

Optimizations
--------------
* Speed up parsing by replacing ctype functions with simplified, faster
  non-locale-sensitive ones in json_tokener and json_object_to_json_string.
* Neither vertical tab nor formfeed are considered whitespace per the JSON spec
* json_object: speed up creation of objects, calloc() -> malloc() + set fields
* Avoid needless extra strlen() call in json_c_shallow_copy_default() and
  json_object_equal() when the object is known to be a json_type_string.

Other changes
-------------
* Validate size arguments in arraylist functions.
* Use getrandom() if available; with GRND_NONBLOCK to allow use of json-c
  very early during boot, such as part of cryptsetup.
* Use arc4random() if it's available.
* random_seed: on error, continue to next method instead of exiting the process
* Close file when unable to read from /dev/urandom in get_dev_random_seed()

diffstat:

 textproc/json-c/Makefile |  4 ++--
 textproc/json-c/PLIST    |  4 ++--
 textproc/json-c/distinfo |  8 ++++----
 3 files changed, 8 insertions(+), 8 deletions(-)

diffs (41 lines):

diff -r 809bdf5dcd21 -r 779b15c75fd7 textproc/json-c/Makefile
--- a/textproc/json-c/Makefile  Wed Apr 20 20:31:09 2022 +0000
+++ b/textproc/json-c/Makefile  Wed Apr 20 20:32:32 2022 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.17 2020/10/01 09:16:12 wiz Exp $
+# $NetBSD: Makefile,v 1.18 2022/04/20 20:32:32 wiz Exp $
 
-DISTNAME=      json-c-0.15
+DISTNAME=      json-c-0.16
 CATEGORIES=    textproc
 MASTER_SITES=  https://s3.amazonaws.com/json-c_releases/releases/
 
diff -r 809bdf5dcd21 -r 779b15c75fd7 textproc/json-c/PLIST
--- a/textproc/json-c/PLIST     Wed Apr 20 20:31:09 2022 +0000
+++ b/textproc/json-c/PLIST     Wed Apr 20 20:32:32 2022 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.7 2020/10/01 09:16:12 wiz Exp $
+@comment $NetBSD: PLIST,v 1.8 2022/04/20 20:32:32 wiz Exp $
 include/json-c/arraylist.h
 include/json-c/debug.h
 include/json-c/json.h
@@ -20,5 +20,5 @@
 lib/libjson-c.a
 lib/libjson-c.so
 lib/libjson-c.so.5
-lib/libjson-c.so.5.1.0
+lib/libjson-c.so.5.2.0
 lib/pkgconfig/json-c.pc
diff -r 809bdf5dcd21 -r 779b15c75fd7 textproc/json-c/distinfo
--- a/textproc/json-c/distinfo  Wed Apr 20 20:31:09 2022 +0000
+++ b/textproc/json-c/distinfo  Wed Apr 20 20:32:32 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.12 2021/10/26 11:22:13 nia Exp $
+$NetBSD: distinfo,v 1.13 2022/04/20 20:32:32 wiz Exp $
 
-BLAKE2s (json-c-0.15.tar.gz) = f7f2484e87578c861d8c551b73bf325a5ff445c008f0b09cc60b0389057d154f
-SHA512 (json-c-0.15.tar.gz) = dc01298bcc78f0f31a34f5fcfe45c0feebfd88518e97fb4f96f1a652f71ccdd303415a4c7bf5b573bdcbcca80428281f0dfccefc6545ea3a7f18dbb819332f34
-Size (json-c-0.15.tar.gz) = 361488 bytes
+BLAKE2s (json-c-0.16.tar.gz) = a469678fa9d8a37b053d19100a212643221e6f112b0ba8cf50c7a89657cb35b1
+SHA512 (json-c-0.16.tar.gz) = 255cff99033340b2c2678255d41dae7808f83ed0c102e693d2d9e186bd1f21dd1385fcaa360c0fc087a00965a9567fbda733370e6b518a9be2f1bb0a80439151
+Size (json-c-0.16.tar.gz) = 351916 bytes



Home | Main Index | Thread Index | Old Index