Commit Graph

  • 4c10712114 Drop the useless "char data[1]" from struct json_object. Fix a typo in a comment. Eric Haszlakiewicz 2020-06-13 18:25:32 +00:00
  • c1b872d817 fix issue 616: support the surrogate pair in split file. dota17 2020-06-02 19:17:42 +08:00
  • 85c244f048 Eliminate unnecessary cast that was added to test_double_serializer. Eric Haszlakiewicz 2020-06-07 18:50:10 +00:00
  • 02fe2e0ccd Summarize the changes from the json_object-split branch in the ChangeLog. Eric Haszlakiewicz 2020-06-07 18:45:17 +00:00
  • ecdfeb18cf Move the ssize_t typedef from json_inttypes.h to json_object_private.h so as not to affect publically exposed symbols. Eric Haszlakiewicz 2020-06-07 18:29:56 +00:00
  • 66d91fdf86 The split of json_object into type-specific sub-structures is now functionally complete. Remove all of the temporary defines, structures, old compat fuctions, extra fields, etc... that were needed during the conversion to a split set of json_object_* structures. Eric Haszlakiewicz 2020-06-07 03:30:39 +00:00
  • c4cc673071 More fixes for old MSVC builds. Eric Haszlakiewicz 2020-06-07 15:25:59 +00:00
  • 0a16b23adf Fix typo in previous commit to check for SSIZE_T on MSVC. Eric Haszlakiewicz 2020-06-07 15:19:29 +00:00
  • eab1375123 Change CMakeLists.txt to look for SSIZE_T on MSVC too. Eric Haszlakiewicz 2020-06-07 03:36:59 +00:00
  • b0466b626b On MSVC, add a ssize_t typedef using SSIZE_T from BaseTsd.h Eric Haszlakiewicz 2020-06-07 03:27:13 +00:00
  • 0fc9d91277 Kick json_type_string out of struct json_object. The default is now that string data is stored inline at the end of json_object, though to allow for json_object_set_string() to set a _longer_ string, we still need to allow for the possibility of a separate char * pointer. All json types have been split out now, next step it cleanup. Eric Haszlakiewicz 2020-06-07 02:42:58 +00:00
  • bc06f82f85 Merge pull request #628 from clamwin/compat-fixes-master Eric Hawicz 2020-06-03 23:53:46 -04:00
  • 481d0a8ede get_cryptgenrandom_seed: compat with old windows + fallback Gianluigi Tiesi 2020-06-01 20:49:08 +02:00
  • ee9f67c81a Issue #626: Restore compatibility with cmake 2.8 by explicitly defining the PROJECT_VERSION* variables. Eric Haszlakiewicz 2020-05-30 19:36:54 +00:00
  • a731ae6a75 Detect broken RDRAND during initialization. Björn Esser 2020-05-25 13:01:18 +02:00
  • cc5c4345c3 Apply the fix from @pointbre in issue #626 to skip "inline" on AIX, but invert the test to make it a little easier to understand. Eric Haszlakiewicz 2020-05-31 03:22:14 +00:00
  • 1c6086a86a Apply the fix from @pointbre in issue #626 to skip "inline" on AIX, but invert the test to make it a little easier to understand. Eric Haszlakiewicz 2020-05-31 03:22:14 +00:00
  • fe308b8862 Issue #626: Restore compatibility with cmake 2.8 by adjusting quoting and explicitly defining the PROJECT_VERSION* variables. Eric Haszlakiewicz 2020-05-30 19:36:54 +00:00
  • 9ecb1222bd Kick json_type_int and json_type_double out of struct json_object. Clean up the code in json_object_new_* a bit by dropping unnecesary json_object_base variables. Eric Haszlakiewicz 2020-05-26 02:31:35 +00:00
  • eec4df641c Detect broken RDRAND during initialization. Björn Esser 2020-05-25 13:03:31 +02:00
  • 0351bb55c8 Declare variables earlier, to appease Visual Studio 2010. Eric Haszlakiewicz 2020-05-25 04:10:11 +00:00
  • d1f83bf5ea Kick json_type_boolean out of struct json_object. Eric Haszlakiewicz 2020-05-25 04:04:02 +00:00
  • 5d89fc8a9d Add some backwards compat for Visual Studio 2013. Eric Haszlakiewicz 2020-05-25 03:52:36 +00:00
  • 02b687b9a6 Kick json_type_array out of struct json_object; re-enable the test_deep_copy test. Eric Haszlakiewicz 2020-05-25 03:44:56 +00:00
  • 853b4b5dee Start splitting struct json_object into multiple sub-types, as descibed at https://github.com/json-c/json-c/wiki/Proposal:-struct-json_object-split The current changes split out _only_ json_type_object, and thus have a number of hacks to allow the code to continue to build and work. Eric Haszlakiewicz 2020-05-25 03:14:06 +00:00
  • 4a546e7b2f In arraylist, use malloc instead of calloc, avoid clearing with memeset until we really need to, and micro-optimize array_list_add(). Eric Haszlakiewicz 2020-05-24 03:53:32 +00:00
  • fbe1543644 Merge pull request #622 from besser82/topic/besser82/doc_subdir Eric Hawicz 2020-05-18 15:30:21 -04:00
  • 1e94da779a CMake: Fix grammar: written -> wrote. Björn Esser 2020-05-18 20:36:05 +02:00
  • 61e2bae511 doc: Move Doxyfile into doc subdir Björn Esser 2020-05-18 20:32:35 +02:00
  • fa6a7dccb9 With the change in cc80203, Doxyfile no longer needs to be updated for a release. Eric Haszlakiewicz 2020-05-18 17:31:22 +00:00
  • cc802039a8 Merge pull request #619 from besser82/topic/besser82/doxygen_oot Eric Hawicz 2020-05-18 13:30:13 -04:00
  • 12b2e1159d Merge pull request #618 from besser82/topic/besser82/test_deep_copy Eric Hawicz 2020-05-18 13:29:21 -04:00
  • 8f3592b3d5 CMake: Fix out-of-tree build for Doxygen documentation. Björn Esser 2020-05-18 18:20:01 +02:00
  • 3008401b2a test_deep_copy: Fix assertion value. Björn Esser 2020-05-18 17:00:17 +02:00
  • a8a0590921 Merge pull request #617 from besser82/topic/besser82/option_disable_tls Eric Hawicz 2020-05-18 10:25:54 -04:00
  • a85d2395ff README: Update configuration options for CMake. Björn Esser 2020-05-18 12:39:38 +02:00
  • 76dd99abb2 CMake: Re-format config-option block and re-order it alphabetically. Björn Esser 2020-05-18 12:26:47 +02:00
  • 78642dcb9b CMake: Add an option to disable the use of thread-local storage. Björn Esser 2020-05-18 11:38:58 +02:00
  • dd040ba446 tests: Fix test_double_serializer without thread-local storage. Björn Esser 2020-05-18 11:38:36 +02:00
  • 5b15c7567d Merge pull request #614 from stoeckmann/format Eric Hawicz 2020-05-16 21:04:11 -04:00
  • 311c5e5b2b Update issue templates Eric Hawicz 2020-05-16 20:55:20 -04:00
  • 5385a566db Prevent truncation on custom double formatters. Tobias Stoeckmann 2020-05-16 13:01:10 +02:00
  • 0a3d22b9bb Revert part of PR#606 and use isnan/isinf again, but provide macro implementations of those in math_compat.h is needed, as it seems to be on AIX and IBM i systems. Eric Haszlakiewicz 2020-05-16 01:29:18 +00:00
  • 1526c84a13 Merge pull request #606 from davidjmccann/master Eric Hawicz 2020-05-15 21:15:18 -04:00
  • f2b7d0b5cb Merge pull request #611 from besser82/topic/besser82/json-c-0.12/CVE-2020-12762 json-c-0.12 Eric Hawicz 2020-05-15 21:05:30 -04:00
  • 4467e94110 Merge pull request #608 from besser82/topic/besser82/json-c-0.14/CVE-2020-12762 Eric Hawicz 2020-05-15 21:02:37 -04:00
  • d706c0bc93 Fix CVE-2020-12762. Björn Esser 2020-05-15 20:38:40 +02:00
  • 74accb17cd Fix CVE-2020-12762. Björn Esser 2020-05-15 20:38:40 +02:00
  • 5d6fa33141 Fix CVE-2020-12762. Björn Esser 2020-05-14 12:32:30 +02:00
  • 86ac554d27 Merge pull request #607 from besser82/topic/besser82/json-c-0.13/CVE-2020-12762 Eric Hawicz 2020-05-14 11:23:40 -04:00
  • add7b13a9a Improved support for IBM operating systems David McCann 2020-05-13 15:57:54 +01:00
  • 865b5a6519 Fix CVE-2020-12762. Björn Esser 2020-05-14 12:32:30 +02:00
  • d414d3eabc Issue #604: add check for __MINGW32__ in snprintf_compat.h Eric Haszlakiewicz 2020-05-13 14:53:05 +00:00
  • 2e71fe0963 Display a bit of info about what exactly we're benchmarking. Eric Haszlakiewicz 2020-05-11 03:03:43 +00:00
  • 199c52e2db Ignore the bench/work and bench/data directories. Eric Haszlakiewicz 2020-05-11 01:24:46 +00:00
  • 3648c3ed2c Merge pull request #602 from ploxiln/parse_uint64_errno Eric Hawicz 2020-05-10 21:15:47 -04:00
  • 003b58782b fix json_parse_uint64() usage of errno Pierce Lopez 2020-05-10 13:20:02 -04:00
  • 26f080997d Fix snprintf on windows problem for test4. Eric Haszlakiewicz 2020-05-10 04:04:28 +00:00
  • 06742d6277 Issue #600: don't rename the static library on Windows, it _needs_ to have a different name because the dll build also creates a "json-c.lib" file. Eric Haszlakiewicz 2020-05-10 03:58:51 +00:00
  • a59d5acfab Re-format after recent change to fix linkhash. Eric Haszlakiewicz 2020-05-10 03:58:27 +00:00
  • 4f43a077a4 Issue #598: avoid building static libraries twice. Eric Haszlakiewicz 2020-05-10 03:48:45 +00:00
  • 519dfe1591 Issue #599: Fix the backwards check in lh_table_insert_w_hash() that was preventing adding more than 11 objects. Add a test to check for this too. Eric Haszlakiewicz 2020-05-10 03:32:19 +00:00
  • 45b6416652 Merge branch 'master' of https://github.com/json-c/json-c Eric Hawicz 2020-05-08 22:25:15 -04:00
  • abc9a0731b Merge pull request #597 from ploxiln/json_parse_usage Eric Hawicz 2020-05-08 22:23:28 -04:00
  • 090ae4e4d4 json_parse demo: fix and use usage() function Pierce Lopez 2020-05-08 18:27:35 -04:00
  • 22870ac2bd Merge pull request #595 from dota17/static_shared Eric Hawicz 2020-05-07 23:23:15 -04:00
  • a100573eec cmake-configure: fix enable-static option hofnarr 2020-05-08 02:27:06 +03:00
  • 558ef8609c cmake: change variable name hofnarr 2020-05-08 02:19:38 +03:00
  • 929d74512a cmake: add list for build targets hofnarr 2020-05-08 02:16:52 +03:00
  • e97fc20bfd update dota17 2020-05-07 14:50:43 +08:00
  • 31243e4d12 Merge pull request #592 from stoeckmann/oob Eric Hawicz 2020-05-06 23:31:15 -04:00
  • d07b910149 Fix integer overflows. Tobias Stoeckmann 2020-05-04 19:47:25 +02:00
  • 952db0f397 support to build both static and shared libraries dota17 2020-05-06 10:48:53 +08:00
  • 77d935b7ae Prevent division by zero in linkhash. Tobias Stoeckmann 2020-05-04 19:46:45 +02:00
  • 099016b7e8 Protect array_list_del_idx against size_t overflow. Tobias Stoeckmann 2020-05-04 19:41:16 +02:00
  • 8e3d3d5544 Make the benchmark work with pre-cmake versions of json-c. Fetch a few more data files. Eric Haszlakiewicz 2020-05-04 03:40:40 +00:00
  • c66e7377f3 In jc-bench.sh, decode the --before and --after args. Use a separate data dir to avoid re-downloading files when the work dir is cleared. Eric Haszlakiewicz 2020-05-04 03:24:39 +00:00
  • 8086314026 Issue #589: drop the rdrand test loops to just 3, tweak comments and add some links to bug reports, and decrease the nesting level of the has_rdrand() function. Eric Haszlakiewicz 2020-05-04 01:29:02 +00:00
  • a555d0e2f2 Merge pull request #589 from Xyene/detect-broken-rdrand Eric Hawicz 2020-05-03 21:13:48 -04:00
  • 4d36b0287d Detect broken RDRAND during initialization Tudor Brindus 2020-05-01 21:09:22 -04:00
  • 9b64c3e347 Fix printf format issues in apps/json_parse, and actually call the usage() function. Eric Hawicz 2020-05-03 14:54:38 -04:00
  • ee90110f9b Merge pull request #590 from Xyene/fix-cpuid-segfault Eric Hawicz 2020-05-03 14:52:31 -04:00
  • 0e5bbcaa16 Fix segmentation fault in CPUID check Tudor Brindus 2020-05-01 22:24:20 -04:00
  • f9605e9072 Fix cmake-configure to accept "--prefix=<foo>" in addition to "--prefix <foo>" (see also Issue #591) Eric Haszlakiewicz 2020-05-03 03:50:16 +00:00
  • 1059007024 Add an initial version of a benchmarking harness for json-c, to be able to more easily compare the performance of different library versions. Eric Haszlakiewicz 2020-04-27 04:00:00 +00:00
  • d9981f67dd Extend the CMakeLists.txt in the apps directory to be usable as a standalone build, to link against other versions of json-c. Tweak json_parse.c slightly to allow it to build against older json-c versions. Eric Haszlakiewicz 2020-04-26 04:02:36 +00:00
  • 00272292a7 The json_parse command line app doesn't build on Windows, disable it. Eric Haszlakiewicz 2020-04-21 21:35:41 +00:00
  • 55d053118e Add an apps directory, and a json_parse program to parse an input file and report on memory usage. This is intended to provide a way, during development, to test out the memory and performance impacts of a change. Eric Haszlakiewicz 2020-04-21 03:51:16 +00:00
  • f6f76f9430 Add a JSON_TOKENER_ALLOW_TRAILING_CHARS flag for json_tokener_set_flags() to allow multiple objects to be parsed from input even when JSON_TOKENER_STRICT is set. Eric Haszlakiewicz 2020-04-20 16:06:34 +00:00
  • 05623b3a2e Add an tok_flags field to explicitly specify tokener flags in test_parse and eliminate the previous bogus calls to json_tokener_set_flags() Eric Haszlakiewicz 2020-04-20 15:13:10 +00:00
  • fa6bc1e2d7 Issue #471: always create directories with mode 0755, regardless of umask. Eric Haszlakiewicz 2020-04-21 03:19:17 +00:00
  • 228881c8fc Issue #585: don't install config.h Eric Haszlakiewicz 2020-04-21 01:13:21 +00:00
  • 8b511c402b Issue #585: don't install config.h Eric Haszlakiewicz 2020-04-21 01:13:21 +00:00
  • ba4527904a Add a few missing git commands to the release checklist, and change the S3 storage to "Standard", since it's actually (barely) cheaper than "Reduced Redundancy" now. Eric Haszlakiewicz 2020-04-19 04:17:29 +00:00
  • 9fb258d110 Update the doc links to point at 0.14 Eric Haszlakiewicz 2020-04-19 04:03:15 +00:00
  • 9f2a8eab44 Add the 0.14 docs. Eric Haszlakiewicz 2020-04-19 03:59:16 +00:00
  • 2babb5b780 Update the master branch to version 0.0.14.99 Eric Haszlakiewicz 2020-04-19 03:57:08 +00:00
  • bae2f10c43 Generate docs for the 0.14 release. json-c-0.14-20200419 Eric Haszlakiewicz 2020-04-19 03:40:50 +00:00
  • 4824a38318 Bump version to 0.14 and shared library version to 5.0.0 Eric Haszlakiewicz 2020-04-19 03:40:37 +00:00
  • 31ab57ca8b Fill in the ChangeLog for the upcoming 0.14 release. Eric Haszlakiewicz 2020-04-19 01:31:48 +00:00