Eric Hawicz
5a310ba1a6
Merge pull request #624 from besser82/topic/besser82/json-c-0.14/rdrand_fixes
json-c-0.14: Detect broken RDRAND during initialization.
2 years ago
Björn Esser
eec4df641c
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.
Also fix a possible segmentation fault in CPUID check.
This commit is a squashed backport of the following
commits on the master branch:
* 0e5bbcaa16
* 4d36b0287d
* 8086314026
5 years ago
Eric Hawicz
4467e94110
Merge pull request #608 from besser82/topic/besser82/json-c-0.14/CVE-2020-12762
json-c-0.14: Fix CVE-2020-12762 - json-c through 0.14 has an integer overflow and out-of-bounds write ...
5 years ago
Björn Esser
5d6fa33141
Fix CVE-2020-12762.
This commit is a squashed backport of the following commits
on the master branch:
* 099016b7e8
* 77d935b7ae
* d07b910149
* 519dfe1591
* a59d5acfab
* 26f080997d
5 years ago
Eric Haszlakiewicz
228881c8fc
Issue #585 : don't install config.h
(cherry picked from commit 8b511c402b
)
5 years ago
Eric Haszlakiewicz
bae2f10c43
Generate docs for the 0.14 release.
5 years ago
Eric Haszlakiewicz
4824a38318
Bump version to 0.14 and shared library version to 5.0.0
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
Eric Haszlakiewicz
a9114392b4
Merge pull request #524 from dota17/addTestCase_obj_token
Increase coverage
5 years ago
Eric Haszlakiewicz
04bb0fca73
Merge pull request #581 from Jehan/wip/Jehan/no-strict-prototypes-windows
CMakeLists: do not enforce strict prototypes on Windows.
5 years ago
dota17
b14363ae32
remove unsuitable case
5 years ago
Jehan
8c33d1c3c9
CMakeLists: do not enforce strict prototypes on Windows.
On Windows, or at least when cross-built with Mingw-w64, build fails
because strict prototype fails on an included file (thus nothing we can
do about in json-c code):
> from /home/jehan/dev/src/json-c/json_util.c:44:
> /home/jehan/.local/share/crossroad/roads/w64/json-c/include/minwindef.h:196:3: error: function declaration isn't a prototype [-Werror=strict-prototypes]
> 196 | typedef INT_PTR (WINAPI *FARPROC) ();
> | ^~~~~~~
> /home/jehan/.local/share/crossroad/roads/w64/json-c/include/minwindef.h:197:3: error: function declaration isn't a prototype [-Werror=strict-prototypes]
> 197 | typedef INT_PTR (WINAPI *NEARPROC) ();
> | ^~~~~~~
> /home/jehan/.local/share/crossroad/roads/w64/json-c/include/minwindef.h:198:3: error: function declaration isn't a prototype [-Werror=strict-prototypes]
> 198 | typedef INT_PTR (WINAPI *PROC) ();
> | ^~~~~~~
Let's just disable the errors for Windows build.
5 years ago
Eric Haszlakiewicz
7fb8d56458
Merge pull request #580 from besser82/topic/besser82/fix_cmake_tests
Fix CMake tests for enforced strict prototypes.
5 years ago
Björn Esser
053eaa61d7
Fix CMake tests for enforced strict prototypes.
5 years ago
Eric Haszlakiewicz
ab5425a6a6
Merge pull request #527 from dota17/arraylist_test
Arraylist testcase
5 years ago
Eric Haszlakiewicz
511edb51a4
Merge pull request #579 from besser82/topic/besser82/strict-prototypes
Enforce strict prototypes.
5 years ago
dota17
2876fcc137
clang-format two test_util_file.c and test_object_iterator.c
5 years ago
chenguoping
8096125618
Increased the test coverage of json_util.c from 76% to 90.3%.
5 years ago
chenguoping
f56c5c1a60
Increased the test coverage of json_object_iterator.c from 0% to 100%
5 years ago
dota17
74bbe349c4
clang-format test1.c
5 years ago
chenguoping
110c60fcdd
fix valgrind errors
5 years ago
chenguoping
76e1472808
testcase for array_list
5 years ago
Björn Esser
d0dc3489dc
Enforce strict prototypes.
5 years ago
Eric Haszlakiewicz
4742a2ab1d
Merge pull request #578 from besser82/topic/besser82/pkgconfig_install
CMake: Install pkgconfig file in proper location by default
5 years ago
Björn Esser
165e6f58fc
CMake: Install pkgconfig file in proper location by default
The default location for pkconfig files on most systems is:
${CMAKE_INSTALL_LIBDIR}/pkgconfig
Thus the file should get installed in there by default.
5 years ago
Eric Haszlakiewicz
8269f90956
Merge pull request #577 from besser82/topic/besser82/json_c_version_test_verbose_on_fail
Be verbose on failing json_c_version test.
5 years ago
Björn Esser
5e699f7f73
Be verbose on failing json_c_version test.
5 years ago
Eric Haszlakiewicz
c58d56ab7c
Merge pull request #576 from besser82/topic/besser82/increase_coverage
Test coverage for json_c_version.
5 years ago
Eric Haszlakiewicz
d52f1ff2c1
Merge pull request #575 from besser82/topic/besser82/cosmetics
Small cosmetics.
5 years ago
Björn Esser
d47fb12e85
Test coverage for json_c_version.
5 years ago
Björn Esser
73a2ed115a
Remove multiple trailing newlines at EOF.
5 years ago
Björn Esser
fd0ae5aba6
gitignore: Add build folder.
5 years ago
Björn Esser
78cd37fb18
Clean trailing white-space.
5 years ago
Björn Esser
37355cf0e6
Fix line terminators to be UNIX.
5 years ago
Eric Haszlakiewicz
270dc2f999
Update README.md to remove autoconf instructions in favor of cmake.
5 years ago
Eric Haszlakiewicz
0734c5303d
Merge pull request #572 from besser82/topic/besser82/cmake_fixes
Small fixes to CMakeLists
5 years ago
Chen
69ceb38f2f
Merge pull request #573 from besser82/topic/besser82/coverage
Fix coveralls submission.
5 years ago
Björn Esser
0dac15c1ca
Fix coveralls submission.
coveralls-cpp is dead and does not work anymore.
Fortunately there is coveralls-lcov available.
5 years ago
Björn Esser
e756777c92
CMake: Check whether BSYMBOLIC is supported by the linker.
Linking with '-Bsymbolic-functions' is supported for ELF-binaries, only.
5 years ago
Björn Esser
58670ec64e
CMake: Build Doxygen documentation out-of-tree.
5 years ago