Accepting request 970969 from home:polslinux:branches:devel:libraries:c_c++
- Update to 0.16: + 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. + 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 * 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() * 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. OBS-URL: https://build.opensuse.org/request/show/970969 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/json-c?expand=0&rev=42
This commit is contained in:
parent
7bd5771d7e
commit
375cfbcb25
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4ba9a090a42cf1e12b84c64e4464bb6fb893666841d5843cc5bef90774028882
|
||||
size 348261
|
BIN
json-c-0.16-20220414.tar.gz
(Stored with Git LFS)
Normal file
BIN
json-c-0.16-20220414.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,3 +1,38 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 20 06:29:21 UTC 2022 - Paolo Stivanin <info@paolostivanin.com>
|
||||
|
||||
- Update to 0.16:
|
||||
+ 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.
|
||||
+ 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
|
||||
* 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()
|
||||
* 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.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 19 15:04:03 UTC 2021 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package json-c
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -19,14 +19,15 @@
|
||||
%define libname libjson-c
|
||||
%define libsoname %{libname}5
|
||||
%define oldlibname libjson
|
||||
%define version_date 20220414
|
||||
Name: json-c
|
||||
Version: 0.15
|
||||
Version: 0.16
|
||||
Release: 0
|
||||
Summary: JSON implementation in C
|
||||
License: MIT
|
||||
Group: Development/Libraries/C and C++
|
||||
URL: https://github.com/json-c/json-c
|
||||
Source0: https://github.com/json-c/json-c/archive/json-c-0.15-20200726.tar.gz
|
||||
Source0: https://github.com/json-c/json-c/archive/json-c-%{version}-%{version_date}.tar.gz
|
||||
Source1: baselibs.conf
|
||||
BuildRequires: cmake
|
||||
BuildRequires: fdupes
|
||||
@ -85,7 +86,7 @@ representation of JSON objects.
|
||||
This package includes the json-c documentation.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{name}-json-c-0.15-20200726
|
||||
%autosetup -p1 -n %{name}-json-c-%{version}-%{version_date}
|
||||
|
||||
%build
|
||||
%if 0%{?suse_version} <= 1110
|
||||
|
Loading…
Reference in New Issue
Block a user