Received: by mail.netbsd.org (Postfix, from userid 605) id F112F84F3C; Wed, 20 Apr 2022 20:32:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 3579F84D1B for ; Wed, 20 Apr 2022 20:32:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id FFUf4qt-V2hm for ; Wed, 20 Apr 2022 20:32:32 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 5593A84CD8 for ; Wed, 20 Apr 2022 20:32:32 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 320A0FB1A; Wed, 20 Apr 2022 20:32:32 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1650486752226230" MIME-Version: 1.0 Date: Wed, 20 Apr 2022 20:32:32 +0000 From: "Thomas Klausner" Subject: CVS commit: pkgsrc/textproc/json-c To: pkgsrc-changes@NetBSD.org Reply-To: wiz@netbsd.org X-Mailer: log_accum Message-Id: <20220420203232.320A0FB1A@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1650486752226230 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: wiz Date: Wed Apr 20 20:32:32 UTC 2022 Modified Files: pkgsrc/textproc/json-c: Makefile PLIST distinfo Log Message: 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() To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 pkgsrc/textproc/json-c/Makefile cvs rdiff -u -r1.7 -r1.8 pkgsrc/textproc/json-c/PLIST cvs rdiff -u -r1.12 -r1.13 pkgsrc/textproc/json-c/distinfo Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1650486752226230 Content-Disposition: inline Content-Length: 2141 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/textproc/json-c/Makefile diff -u pkgsrc/textproc/json-c/Makefile:1.17 pkgsrc/textproc/json-c/Makefile:1.18 --- pkgsrc/textproc/json-c/Makefile:1.17 Thu Oct 1 09:16:12 2020 +++ pkgsrc/textproc/json-c/Makefile Wed Apr 20 20:32:32 2022 @@ -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/ Index: pkgsrc/textproc/json-c/PLIST diff -u pkgsrc/textproc/json-c/PLIST:1.7 pkgsrc/textproc/json-c/PLIST:1.8 --- pkgsrc/textproc/json-c/PLIST:1.7 Thu Oct 1 09:16:12 2020 +++ pkgsrc/textproc/json-c/PLIST Wed Apr 20 20:32:32 2022 @@ -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/cmake/json-c/json-c-targets.cmake 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 Index: pkgsrc/textproc/json-c/distinfo diff -u pkgsrc/textproc/json-c/distinfo:1.12 pkgsrc/textproc/json-c/distinfo:1.13 --- pkgsrc/textproc/json-c/distinfo:1.12 Tue Oct 26 11:22:13 2021 +++ pkgsrc/textproc/json-c/distinfo Wed Apr 20 20:32:32 2022 @@ -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 --_----------=_1650486752226230--