20 Commits

Author SHA256 Message Date
8e806d08ac Accepting request 798586 from home:polslinux:branches:devel:libraries:c_c++
- json-c 0.14:
  * bits.h has been removed
  * lh_abort() has been removed
  * lh_table_lookup() has been removed, use lh_table_lookup_ex() instead.
  * Remove TRUE and FALSE defines, use 1 and 0 instead.
  * Switch to cmake
  * Build fixes
  * Doc updates
  * Added a json_tokener_get_parse_end() function to replace
    direct access of tok->char_offset
  * json_tokener_parse_ex() now accepts a new JSON_TOKENER_VALIDATE_UTF8 flag
    to validate that input is UTF8
  * Add support for unsigned 64-bit integers
  * A total of 7 new functions were added:
    * json_object_get_uint64 ( struct json_object const* jso )
    * json_object_new_uint64 ( uint64_t i )
    * json_object_set_uint64 ( struct json_object* jso, uint64_t new_value )
    * json_parse_uint64 ( char const* buf, uint64_t* retval )
        * See description of uint64 support, above.
    * json_tokener_get_parse_end ( struct json_tokener* tok )
        * See details under "json_tokener changes", above.
    * json_object_from_fd_ex ( int fd, int in_depth )
        * Allows the max nesting depth to be specified.
    * json_object_new_null ( )
        * Simply returns NULL.  Its use is not recommended.
  * The size of struct json_object has decreased from 96 bytes to 88 bytes.

OBS-URL: https://build.opensuse.org/request/show/798586
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/json-c?expand=0&rev=33
2020-04-30 15:47:22 +00:00
870b87ec00 Accepting request 586115 from home:avindra
- json-c 0.13.1
  * Add const size_t json_c_object_sizeof()
  * Avoid invalid free (and thus a segfault) when ref_count gets < 0
  * Fix handling of custom double formats that include a ".0"
  * Avoid uninitialized variable warnings in json_object_object_foreach
  * Add a top level fuzz directory for fuzzers run by OSS-Fuzz
  * Fix build for certain uClibc based systems.
  * Bump sonum to 4.0 to avoid conflicts because some packagers made
    their own bump to ".so.3" for the older 0.12 release

OBS-URL: https://build.opensuse.org/request/show/586115
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/json-c?expand=0&rev=31
2018-03-14 22:48:53 +00:00
95a37c5239 Accepting request 560218 from home:avindra
- json-c 0.13
  + Deprecated and removed features:
    * Internal use of bits.h has been eliminated.
    * lh_abort() is deprecated
  + Behavior changes:
    * Tighten the number parsing algorithm to raise errors instead
      of truncating the results.  For example 12.3.4 or 2015-01-15,
      which now return null.
    * Use size_t for array length and size. Platforms where
      sizeof(size_t) != sizeof(int) may not be backwards compatible
    * Check for failue when allocating memory, returning NULL and
      errno=ENOMEM.
    * Change json_object_object_add() return type from void to int,
      and will return -1 on failures, instead of exiting. (Note:
      this is not an ABI change)
  + New features:
    * Aiming to follow RFC 7159 now.
    * Support for JSON pointer, RFC 6901 (see json_pointer.h)
    * Add a couple of additional option to json_object_to_json_string_ext:
	JSON_C_TO_STRING_PRETTY_TAB
	JSON_C_TO_STRING_NOSLASHESCAPE
    * json_object_object_add_ex() - better perf when certain
      constraints are known to be true
    * Serialization format of doubles now configurable
    * New functions
      - json_object_equal() - utility function for comparing
        json_objects
      - json_object_deep_copy() - a way to copy entire object
        trees
      - json_object_set_<type>() - modify the value of
        existing json_object's without the need to recreate them.
	Also add a json_object_int_inc function to adjust an int's'
	value.
      - json_util_get_last_err() - retrieve the string describing
        the cause of errors, instead of printing to stderr.
      - perllike hash function for strings
    * json_global_set_string_hash()
    * json_c_visit() - a way to iterate over a tree of json-c
      objects.
  + Notable bug fixes and other improvements:
    * Make reference increment and decrement atomic to allow
      passing json objects between threads.
    * Fix json_object_object_foreach to avoid uninitialized
      variable warnings.
    * Improve performance by removing unneeded data items from
      hashtable code and reducing duplicate hash computation.
    * Performance: store small strings inside json_object
    * Performance: of json_object_to_json_string by removing
      variadic printf
    * Fix parsing of "-Infinity", and avoid needlessly copying the
      input when doing so.
    * Fix stack buffer overflow in json_object_double_to_json_string_format()
    * Fix various potential null ptr deref and int32 overflows
    * Fix a long-standing bug in array_list_put_idx() where it
      would attempt to free previously free'd entries due to not
      checking the current array length.
    * use uselocale() instead of setlocale() in json_tokener to
      behave better in threaded environments.
    * Fix out of bounds read when handling unicode surrogate pairs.
    * Ensure doubles that happen to be a whole number are emitted
      with ".0"
    * Visual Studio: use a snprintf/vsnprintf wrapper that ensures
      the string is terminated.
    * Fix double to int cast overflow in json_object_get_int64.
    * Clamp double to int32 when narrowing in json_object_get_int.
    * Use strtoll() to parse ints - instead of sscanf
    * usual code linting
 + Build changes:
    * Add Appveyor and Travis build support
    * Support for MacOS and Windows through CMake
    * Silent build by default
    * Link against libm when needed
    * Add support for building with AddressSanitizer
    * Add support for building with Clang
    * Add a --enable-threading configure option, and only use the
      (slower) __sync_add_and_fetch()/__sync_sub_and_fetch()
      function when it is specified.
- cleanup with spec-cleaner
- remove fix-set-but-not-used.patch
  + fixed: https://github.com/json-c/json-c/issues/240
- remove gcc7-fix.patch
  + fixed in 014924ba899f659917bb64392bbff7d3c803afc2

OBS-URL: https://build.opensuse.org/request/show/560218
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/json-c?expand=0&rev=29
2017-12-28 12:22:30 +00:00
f12c435432 Accepting request 482177 from home:marxin:branches:devel:libraries:c_c++
Fix GCC7 warnings.

OBS-URL: https://build.opensuse.org/request/show/482177
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/json-c?expand=0&rev=27
2017-03-29 12:16:18 +00:00
40b4ae9e59 Accepting request 411917 from home:susnux:branches:devel:libraries:c_c++
Update to new upstream release

OBS-URL: https://build.opensuse.org/request/show/411917
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/json-c?expand=0&rev=25
2016-07-20 06:57:27 +00:00
Ismail Dönmez
e825e1ff57 Accepting request 250316 from home:AndreasStieger:branches:devel:libraries:c_c++
json-c 0.12

OBS-URL: https://build.opensuse.org/request/show/250316
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/json-c?expand=0&rev=23
2014-09-21 13:36:48 +00:00
Ismail Dönmez
fe5360f6e9 -
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/json-c?expand=0&rev=21
2014-04-09 09:56:41 +00:00
Ismail Dönmez
f4e7d9538b - Add -hash-dos-and-overflow-random-seed-4e.patch to fix
CVE-2013-6370 and CVE-2013-6371 (bnc#870147)

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/json-c?expand=0&rev=20
2014-04-09 09:46:35 +00:00
Stephan Kulow
cd64bd290c Accepting request 220837 from home:jengelh:branches:devel:libraries:c_c++
- Update metadata (description, RPM groups), and remove .la file
  in %install, not %check.

OBS-URL: https://build.opensuse.org/request/show/220837
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/json-c?expand=0&rev=18
2014-02-05 06:28:31 +00:00
Michal Vyskocil
f3d21a9829 Accepting request 213239 from home:fstrba
- Upgrade to 0.11 version:
  - SONAME change.
  - Fix provides and obsoletes accordingly
  - symlink the .pc file to the oldname for software that needs it
- Remove json-c-fix-headers.patch integrated upstream

OBS-URL: https://build.opensuse.org/request/show/213239
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/json-c?expand=0&rev=16
2014-01-09 12:24:03 +00:00
Stephan Kulow
acf4cfd865 Accepting request 158152 from home:coolo:branches:openSUSE:Factory
- add json-c-fix-headers.patch from master branch to fix compilation
  of apps using the lib

OBS-URL: https://build.opensuse.org/request/show/158152
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/json-c?expand=0&rev=14
2013-03-10 08:45:36 +00:00
Ismail Dönmez
8c031bb13b Accepting request 157617 from home:bruno_friedmann:branches:devel:libraries:c_c++
replace sr 157134 

Added one by one changes for patches in the changes

OBS-URL: https://build.opensuse.org/request/show/157617
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/json-c?expand=0&rev=12
2013-03-07 10:37:34 +00:00
Cristian Rodríguez
9de68772e2 Accepting request 114925 from home:elvigia:branches:devel:libraries:c_c++
- Fix LFS support in x86.
- Do not build with -Werror
- Remove "la" files
- tune up autotools scripts as well ensure config.h is included
  everywhere

OBS-URL: https://build.opensuse.org/request/show/114925
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/json-c?expand=0&rev=10
2012-04-22 03:47:25 +00:00
35c2be8177 Remove redundant/unwanted tags/section (cf. specfile guidelines)
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/json-c?expand=0&rev=6
2011-11-13 13:51:06 +00:00
Ismail Dönmez
f87df6685c Accepting request 91122 from home:coolo:removelibtool
add buildrequire libtool

OBS-URL: https://build.opensuse.org/request/show/91122
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/json-c?expand=0&rev=5
2011-11-13 09:42:44 +00:00
Ismail Dönmez
f739007675 Accepting request 80000 from home:coolo:branches:openSUSE:Factory
- add baselibs.conf for pulseaudio to use
- use original sources

OBS-URL: https://build.opensuse.org/request/show/80000
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/json-c?expand=0&rev=3
2011-08-29 08:06:28 +00:00
OBS User buildservice-autocommit
0bdaa31529 Updating link to change in openSUSE:Factory/json-c revision 2.0
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/json-c?expand=0&rev=d94c19448b7215ebed85afaf3bd9034b
2011-08-26 10:21:25 +00:00
Sascha Peilicke
315360ffa6 Autobuild autoformatter for 79817
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/json-c?expand=0&rev=2
2011-08-26 10:21:25 +00:00
Sascha Peilicke
d14366dcdd Accepting request 79817 from devel:libraries:c_c++
Please add json-c to openSUSE Factory. It's a new dependency of pulseaudio 0.99.x, which I'm preparing. Thanks a lot

OBS-URL: https://build.opensuse.org/request/show/79817
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/json-c?expand=0&rev=1
2011-08-26 10:21:13 +00:00
Pavol Rusnak
2bc7e2fb7c Accepting request 58770 from home:computersalat:devel:tel
OBS-URL: https://build.opensuse.org/request/show/58770
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/json-c?expand=0&rev=1
2011-02-09 17:23:18 +00:00