File json-c.changes of Package json-c
xxxxxxxxxx
1
-------------------------------------------------------------------
2
Fri Jan 14 11:16:37 UTC 2022 - Nathan Cutler <ncutler@suse.com>
3
4
- Add patch bsc1171479.patch
5
+ fix integer overflow and out-of-bounds write (CVE-2020-12762, bsc#1171479)
6
7
-------------------------------------------------------------------
8
Thu Dec 28 05:17:43 UTC 2017 - avindra@opensuse.org
9
10
- json-c 0.13
11
+ Deprecated and removed features:
12
* Internal use of bits.h has been eliminated.
13
* lh_abort() is deprecated
14
+ Behavior changes:
15
* Tighten the number parsing algorithm to raise errors instead
16
of truncating the results. For example 12.3.4 or 2015-01-15,
17
which now return null.
18
* Use size_t for array length and size. Platforms where
19
sizeof(size_t) != sizeof(int) may not be backwards compatible
20
* Check for failue when allocating memory, returning NULL and
21
errno=ENOMEM.
22
* Change json_object_object_add() return type from void to int,
23
and will return -1 on failures, instead of exiting. (Note:
24
this is not an ABI change)
25
+ New features:
26
* Aiming to follow RFC 7159 now.
27
* Support for JSON pointer, RFC 6901 (see json_pointer.h)
28
* Add a couple of additional option to json_object_to_json_string_ext:
29
JSON_C_TO_STRING_PRETTY_TAB
30
JSON_C_TO_STRING_NOSLASHESCAPE
31
* json_object_object_add_ex() - better perf when certain
32
constraints are known to be true
33
* Serialization format of doubles now configurable
34
* New functions
35
- json_object_equal() - utility function for comparing
36
json_objects
37
- json_object_deep_copy() - a way to copy entire object
38
trees
39
- json_object_set_<type>() - modify the value of
40
existing json_object's without the need to recreate them.
41
Also add a json_object_int_inc function to adjust an int's'
42
value.
43
- json_util_get_last_err() - retrieve the string describing
44
the cause of errors, instead of printing to stderr.
45
- perllike hash function for strings
46
* json_global_set_string_hash()
47
* json_c_visit() - a way to iterate over a tree of json-c
48
objects.
49
+ Notable bug fixes and other improvements:
50
* Make reference increment and decrement atomic to allow
51
passing json objects between threads.
52
* Fix json_object_object_foreach to avoid uninitialized
53
variable warnings.
54
* Improve performance by removing unneeded data items from
55
hashtable code and reducing duplicate hash computation.
56
* Performance: store small strings inside json_object
57
* Performance: of json_object_to_json_string by removing
58
variadic printf
59
* Fix parsing of "-Infinity", and avoid needlessly copying the
60
input when doing so.
61
* Fix stack buffer overflow in json_object_double_to_json_string_format()
62
* Fix various potential null ptr deref and int32 overflows
63
* Fix a long-standing bug in array_list_put_idx() where it
64
would attempt to free previously free'd entries due to not
65
checking the current array length.
66
* use uselocale() instead of setlocale() in json_tokener to
67
behave better in threaded environments.
68
* Fix out of bounds read when handling unicode surrogate pairs.
69
* Ensure doubles that happen to be a whole number are emitted
70
with ".0"
71
* Visual Studio: use a snprintf/vsnprintf wrapper that ensures
72
the string is terminated.
73
* Fix double to int cast overflow in json_object_get_int64.
74
* Clamp double to int32 when narrowing in json_object_get_int.
75
* Use strtoll() to parse ints - instead of sscanf
76
* usual code linting
77
+ Build changes:
78
* Add Appveyor and Travis build support
79
* Support for MacOS and Windows through CMake
80
* Silent build by default
81
* Link against libm when needed
82
* Add support for building with AddressSanitizer
83
* Add support for building with Clang
84
* Add a --enable-threading configure option, and only use the
85
(slower) __sync_add_and_fetch()/__sync_sub_and_fetch()
86
function when it is specified.
87
- cleanup with spec-cleaner
88
- remove fix-set-but-not-used.patch
89
+ fixed: https://github.com/json-c/json-c/issues/240
90
- remove gcc7-fix.patch
91
+ fixed in 014924ba899f659917bb64392bbff7d3c803afc2
92
93
-------------------------------------------------------------------
94
Thu Mar 23 09:29:23 UTC 2017 - mliska@suse.cz
95
96
- Added gcc7-fix.patch
97
98
-------------------------------------------------------------------
99
Mon Jul 18 17:39:03 UTC 2016 - rpm@fthiessen.de
100
101
- Update to upstream release 0.12.1
102
- Removed upstream fixed json-c-0.12-unused_variable_size.patch
103
- Added fix-set-but-not-used.patch
104
105
-------------------------------------------------------------------
106
Sat Sep 20 12:07:25 UTC 2014 - andreas.stieger@gmx.de
107
108
- json-c 0.12
109
Fixes for security issues contained in this release have been
110
previously patched into this package, but listed for completeness:
111
* Address security issues:
112
* CVE-2013-6371: hash collision denial of service
113
* CVE-2013-6370: buffer overflow if size_t is larger than int
114
- Further changes:
115
* Avoid potential overflow in json_object_get_double
116
* Eliminate the mc_abort() function and MC_ABORT macro.
117
* Make the json_tokener_errors array local. It has been deprecated for
118
a while, and json_tokener_error_desc() should be used instead.
119
* change the floating point output format to %.17g so values with
120
more than 6 digits show up in the output.
121
* Remove the old libjson.so name compatibility support. The library is
122
only created as libjson-c.so now and headers are only installed
123
into the ${prefix}/json-c directory.
124
* When supported by the linker, add the -Bsymbolic-functions flag.
125
* Make strict mode more strict:
126
* number must not start with 0
127
* no single-quote strings
128
* no comments
129
* trailing char not allowed
130
* only allow lowercase literals
131
* Added a json_object_new_double_s() convenience function to allow
132
an exact string representation of a double to be specified when
133
creating the object and use it in json_tokener_parse_ex() so
134
a re-serialized object more exactly matches the input.
135
* Add support NaN and Infinity
136
- packaging changes:
137
* json-c-hash-dos-and-overflow-random-seed-4e.patch is upstream
138
* Move from json-c-lfs.patch which removed warning errors and
139
autoconf call to json-c-0.12-unused_variable_size.patch from
140
upstream which fixes the warning
141
* except for SLE 11 where autoreconf call is required
142
* add licence file to main package
143
144
-------------------------------------------------------------------
145
Mon Apr 7 12:22:58 UTC 2014 - idonmez@suse.com
146
147
- Add json-c-hash-dos-and-overflow-random-seed-4e.patch to fix
148
CVE-2013-6370 and CVE-2013-6371 (bnc#870147)
149
150
-------------------------------------------------------------------
151
Tue Feb 4 14:54:51 UTC 2014 - jengelh@inai.de
152
153
- Update metadata (description, RPM groups), and remove .la file
154
in %install, not %check.
155
156
-------------------------------------------------------------------
157
Mon Jan 6 13:09:45 UTC 2014 - fstrba@suse.com
158
159
- Upgrade to 0.11 version:
160
- SONAME change.
161
- Fix provides and obsoletes accordingly
162
- symlink the .pc file to the oldname for software that needs it
163
- Remove json-c-fix-headers.patch integrated upstream
164
165
-------------------------------------------------------------------
166
Sun Mar 10 08:38:30 UTC 2013 - coolo@suse.com
167
168
- add json-c-fix-headers.patch from master branch to fix compilation
169
of apps using the lib
170
171
-------------------------------------------------------------------
172
Thu Mar 7 09:43:30 UTC 2013 - bruno@ioda-net.ch
173
174
- Update to 0.10 version :
175
* Add a json_object_to_json_string_ext() function to allow output
176
to be formatted in a more human readable form.
177
* Add json_object_object_get_ex(), a NULL-safe get object method,
178
to be able to distinguish between a key not present and the value
179
being NULL.
180
* Add an alternative iterator implementation, see json_object_iterator.h
181
* Make json_object_iter public to enable external use of the
182
json_object_object_foreachC macro.
183
* Add a printbuf_memset() function to provide an effecient way to set and
184
append things like whitespace indentation.
185
* Adjust json_object_is_type and json_object_get_type so they return
186
json_type_null for NULL objects and handle NULL passed to
187
json_objct_object_get().
188
* Rename boolean type to json_bool.
189
* Fix various compile issues for Visual Studio and MinGW.
190
* Allow json_tokener_parse_ex() to be re-used to parse multiple object.
191
Also, fix some parsing issues with capitalized hexadecimal numbers and
192
number in E notation.
193
* Add json_tokener_get_error() and json_tokener_error_desc() to better
194
encapsulate the process of retrieving errors while parsing.
195
* Various improvements to the documentation of many functions.
196
* Add new json_object_array_sort() function.
197
* Fix a bug in json_object_get_int(), which would incorrectly return 0
198
when called on a string type object.
199
Eric Haszlakiewicz
200
* Add a json_type_to_name() function.
201
Eric Haszlakiewicz
202
* Add a json_tokener_parse_verbose() function.
203
Jehiah Czebotar
204
* Improve support for null bytes within JSON strings.
205
Jehiah Czebotar
206
* Fix file descriptor leak if memory allocation fails in json_util
207
Zachary Blair, zack_blair at hotmail dot com
208
* Add int64 support. Two new functions json_object_net_int64 and
209
json_object_get_int64. Binary compatibility preserved.
210
Eric Haszlakiewicz, EHASZLA at transunion com
211
Rui Miguel Silva Seabra, rms at 1407 dot org
212
* Fix subtle bug in linkhash where lookup could hang after all slots
213
were filled then successively freed.
214
Spotted by Jean-Marc Naud, j dash m at newtraxtech dot com
215
* Make json_object_from_file take const char *filename
216
Spotted by Vikram Raj V, vsagar at attinteractive dot com
217
* Add handling of surrogate pairs (json_tokener.c, test4.c, Makefile.am)
218
Brent Miller, bdmiller at yahoo dash inc dot com
219
* Correction to comment describing printbuf_memappend in printbuf.h
220
Brent Miller, bdmiller at yahoo dash inc dot com
221
222
- Packaging :
223
* upgrade upstream location https://gitub.com/json-c/json-c/wiki
224
* cleanup old patches included now upstream
225
. json-c-0.9-linkhash.patch
226
. json-c-0.9-json_tokener.patch
227
. json-c-0.9-json_object_from_file.patch
228
. json-c-0.9-base.patch
229
* Redone lfs patch against new 0.10 release
230
* Removed empty NEWS file
231
232
-------------------------------------------------------------------
233
Sun Apr 22 00:34:03 UTC 2012 - crrodriguez@opensuse.org
234
235
- Fix LFS support in x86.
236
- Do not build with -Werror
237
- Remove "la" files
238
- tune up autotools scripts as well ensure config.h is included
239
everywhere
240
241
-------------------------------------------------------------------
242
Sun Nov 13 13:50:27 UTC 2011 - jengelh@medozas.de
243
244
- Remove redundant/unwanted tags/section (cf. specfile guidelines)
245
246
-------------------------------------------------------------------
247
Sun Nov 13 09:11:46 UTC 2011 - coolo@suse.com
248
249
- add libtool as explicit buildrequire to avoid implicit dependency from prjconf
250
251
-------------------------------------------------------------------
252
Mon Aug 29 08:01:40 UTC 2011 - coolo@novell.com
253
254
- add baselibs.conf for pulseaudio to use
255
- use original sources
256
257
-------------------------------------------------------------------
258
Thu Nov 4 17:22:27 UTC 2010 - chris@computersalat.de
259
260
- initial pkg 0.9
261
262