Eric Hawicz
3648c3ed2c
Merge pull request #602 from ploxiln/parse_uint64_errno
fix json_parse_uint64() usage of errno
5 years ago
Pierce Lopez
003b58782b
fix json_parse_uint64() usage of errno
introduced in #542
fixes #601
5 years ago
Eric Haszlakiewicz
26f080997d
Fix snprintf on windows problem for test4.
5 years ago
Eric Haszlakiewicz
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.
5 years ago
Eric Haszlakiewicz
a59d5acfab
Re-format after recent change to fix linkhash.
5 years ago
Eric Haszlakiewicz
4f43a077a4
Issue #598 : avoid building static libraries twice.
5 years ago
Eric Haszlakiewicz
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.
5 years ago
Eric Hawicz
45b6416652
Merge branch 'master' of https://github.com/json-c/json-c
5 years ago
Eric Hawicz
abc9a0731b
Merge pull request #597 from ploxiln/json_parse_usage
json_parse demo: fix and use usage() function
5 years ago
Pierce Lopez
090ae4e4d4
json_parse demo: fix and use usage() function
5 years ago
Eric Hawicz
22870ac2bd
Merge pull request #595 from dota17/static_shared
Support to build both static and shared libraries
5 years ago
hofnarr
a100573eec
cmake-configure: fix enable-static option
5 years ago
hofnarr
558ef8609c
cmake: change variable name
5 years ago
hofnarr
929d74512a
cmake: add list for build targets
5 years ago
dota17
e97fc20bfd
update
5 years ago
Eric Hawicz
31243e4d12
Merge pull request #592 from stoeckmann/oob
Prevent out of boundary write on malicious input
5 years ago
Tobias Stoeckmann
d07b910149
Fix integer overflows.
The data structures linkhash and printbuf are limited to 2 GB in size
due to a signed integer being used to track their current size.
If too much data is added, then size variable can overflow, which is
an undefined behaviour in C programming language.
Assuming that a signed int overflow just leads to a negative value,
like it happens on many sytems (Linux i686/amd64 with gcc), then
printbuf is vulnerable to an out of boundary write on 64 bit systems.
5 years ago
dota17
952db0f397
support to build both static and shared libraries
5 years ago
Tobias Stoeckmann
77d935b7ae
Prevent division by zero in linkhash.
If a linkhash with a size of zero is created, then modulo operations
are prone to division by zero operations.
Purely protective measure against bad usage.
5 years ago
Tobias Stoeckmann
099016b7e8
Protect array_list_del_idx against size_t overflow.
If the assignment of stop overflows due to idx and count being
larger than SIZE_T_MAX in sum, out of boundary access could happen.
It takes invalid usage of this function for this to happen, but
I decided to add this check so array_list_del_idx is as safe against
bad usage as the other arraylist functions.
5 years ago
Eric Haszlakiewicz
8e3d3d5544
Make the benchmark work with pre-cmake versions of json-c. Fetch a few more data files.
5 years ago
Eric Haszlakiewicz
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.
5 years ago
Eric Haszlakiewicz
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.
5 years ago
Eric Hawicz
a555d0e2f2
Merge pull request #589 from Xyene/detect-broken-rdrand
Detect broken RDRAND during initialization
5 years ago
Tudor Brindus
4d36b0287d
Detect broken RDRAND during initialization
Some CPUs advertise RDRAND in CPUID, but return 0xFFFFFFFF
unconditionally. To avoid locking up later, test RDRAND during
initialization, and if it returns 0xFFFFFFFF, mark it as nonexistent.
Fixes #588 .
5 years ago
Eric Hawicz
9b64c3e347
Fix printf format issues in apps/json_parse, and actually call the usage() function.
5 years ago
Eric Hawicz
ee90110f9b
Merge pull request #590 from Xyene/fix-cpuid-segfault
Fix segmentation fault in CPUID check
5 years ago
Tudor Brindus
0e5bbcaa16
Fix segmentation fault in CPUID check
5 years ago
Eric Haszlakiewicz
f9605e9072
Fix cmake-configure to accept "--prefix=<foo>" in addition to "--prefix <foo>" (see also Issue #591 )
5 years ago
Eric Haszlakiewicz
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.
5 years ago
Eric Haszlakiewicz
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.
5 years ago
Eric Haszlakiewicz
00272292a7
The json_parse command line app doesn't build on Windows, disable it.
5 years ago
Eric Haszlakiewicz
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.
5 years ago
Eric Haszlakiewicz
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.
5 years ago
Eric Haszlakiewicz
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()
5 years ago
Eric Haszlakiewicz
fa6bc1e2d7
Issue #471 : always create directories with mode 0755, regardless of umask.
5 years ago
Eric Haszlakiewicz
8b511c402b
Issue #585 : don't install config.h
5 years ago
Eric Haszlakiewicz
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.
5 years ago
Eric Haszlakiewicz
2babb5b780
Update the master branch to version 0.0.14.99
5 years ago
Eric Haszlakiewicz
31ab57ca8b
Fill in the ChangeLog for the upcoming 0.14 release.
5 years ago
Eric Haszlakiewicz
9ed00a694b
Fill in a few more pre-release steps to match what we've done for the 0.14 release.
Move the list of contributors to the AUTHORS file.
5 years ago
Eric Haszlakiewicz
4badbe9c20
Rewrite the issued_closed_for_* files so they display a bit nicer.
5 years ago
Eric Haszlakiewicz
0a95f98b8d
Explicitly mark several things in json_tokener deprecated.
5 years ago
Eric Haszlakiewicz
ecb9354bb1
Re-do clang-format.
5 years ago
Eric Haszlakiewicz
23ddcbd4da
Make json_abort() internal to json_object.c
5 years ago
Eric Haszlakiewicz
5cc11289b4
Make json_tokener_validate_utf8() internal to json_tokener.c, and improve the docs a bit.
5 years ago
Eric Haszlakiewicz
4dc0f1718e
Merge pull request #582 from dota17/list_closed_issue_pr
add the list of issues& prs closed
5 years ago
dota17
4313465f25
update
5 years ago
dota17
8bdb420d0f
manual adjustment
5 years ago
dota17
6bf6a9e248
add the list of issues& prs closed
5 years ago