History log of /iperf/src/cjson.c (Results 1 – 18 of 18)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: 3.11, 3.10.1, 3.10, 3.9, 3.8.1, 3.8
# 6c10d8a0 14-Apr-2020 Bruce A. Mah <[email protected]>

enh: Update cJSON to 1.7.13 (#978)

This is a modified version of cJSON with support for 64-bit integers. This change pulls in some bug fixes and security fixes. It also fixes some compiler warning

enh: Update cJSON to 1.7.13 (#978)

This is a modified version of cJSON with support for 64-bit integers. This change pulls in some bug fixes and security fixes. It also fixes some compiler warnings on ILP32, caused by the way that we imported the previous cJSON (fixes inspired by #855).

show more ...


# 4e9a30bb 16-Nov-2019 Xiang Xiao <[email protected]>

fix cjson warning: "true" and "false redefined

the similar change also exist in the offical git:
https://github.com/DaveGamble/cJSON

Part of #935.

Change-Id: I3d98de3ec893ccf0b0cab37acc2dbfef00d9e

fix cjson warning: "true" and "false redefined

the similar change also exist in the offical git:
https://github.com/DaveGamble/cJSON

Part of #935.

Change-Id: I3d98de3ec893ccf0b0cab37acc2dbfef00d9e2b6
Signed-off-by: Xiang Xiao <[email protected]>
(cherry picked from commit 98c868360c858f4c5fd466bd03fd157ac56b3f06)
Signed-off-by: Bruce A. Mah <[email protected]>

show more ...


Revision tags: 3.7, 3.6, 3.5, 3.4, 3.3, 3.2, 3.2rc1
# cab5dba8 11-May-2017 Bruce A. Mah <[email protected]>

Import cjson 1.5.2 (#573)

* Import source files for cJSON 1.5.2.

* Portability and 64-bit changes for cJSON.


# 5ab2132c 20-Apr-2017 Gabriel Ganne <[email protected]>

warning fixes (#551)

* fix Wstrict-prototypes warnings found by clang

also fix usage_long() call

Signed-off-by: Gabriel Ganne <[email protected]>

* fix Wunreachable-code-break warnings

warning fixes (#551)

* fix Wstrict-prototypes warnings found by clang

also fix usage_long() call

Signed-off-by: Gabriel Ganne <[email protected]>

* fix Wunreachable-code-break warnings found by clang

Signed-off-by: Gabriel Ganne <[email protected]>

* fix Wshadow warnings found by clang

Signed-off-by: Gabriel Ganne <[email protected]>

* fix Wmissing-noreturn warning found by clang

Signed-off-by: Gabriel Ganne <[email protected]>

* ix memory leak found by clang

Signed-off-by: Gabriel Ganne <[email protected]>

* fix Wmisleading-indentation warnings raised by gcc-6

Signed-off-by: Gabriel Ganne <[email protected]>

* fix warning: Value stored to 'ptr' during its initialization is never read found by clang

Signed-off-by: Gabriel Ganne <[email protected]>

* fix warning: The left operand of '>' is a garbage value found by clang

Signed-off-by: Gabriel Ganne <[email protected]>

* fix memory leak in global cleanup

Signed-off-by: Gabriel Ganne <[email protected]>

show more ...


Revision tags: 3.1.7, 3.1.6, 3.1.5, 3.1.4
# d99a69f9 05-Oct-2016 Bruce A. Mah <[email protected]>

Fix a buffer overflow in upstream cJSON.

This is DaveGamble/cJSON#30, and fixes issue #466.


Revision tags: 3.0.12, 3.1.3
# ed94082b 03-Jun-2016 Bruce A. Mah <[email protected]>

Fix a buffer overflow / heap corruption issue that could occur if a
malformed JSON string was passed on the control channel. This issue,
present in the cJSON library, was already fixed upstream, so

Fix a buffer overflow / heap corruption issue that could occur if a
malformed JSON string was passed on the control channel. This issue,
present in the cJSON library, was already fixed upstream, so was
addressed here in iperf3 by importing a newer version of cJSON (plus
local ESnet modifications).

Discovered and reported by Dave McDaniel, Cisco Talos.

Based on a patch by @dopheide-esnet, with input from @DaveGamble.

Cross-references: TALOS-CAN-0164, ESNET-SECADV-2016-0001,
CVE-2016-4303

show more ...


Revision tags: 3.1.2, 3.1.1, 3.1, 3.1b3, 3.1b2, 3.1b1
# 081ad7c0 12-Feb-2015 Havard Eidnes <[email protected]>

Add casts for the two remaining tolower() uses, since
tolower() is undefined for negative character values
(except for -1).

Also simplify the existing casts for tolower() usages.


Revision tags: 3.0.11, 3.0.10, 3.0.9, 3.0.8
# 236dcb0b 19-Sep-2014 Bruce A. Mah <[email protected]>

Use HAVE_STDINT_H to prevent a recurrence of #175.


# d0d17267 16-Sep-2014 Bruce A. Mah <[email protected]>

Merge pull request #206 from duyaokun/fix-compile-cjson-error

Fixed compilation error in src/cjson.c observed in Visual Studio 2013.

This problem didn't cause breakage on any other platform, but th

Merge pull request #206 from duyaokun/fix-compile-cjson-error

Fixed compilation error in src/cjson.c observed in Visual Studio 2013.

This problem didn't cause breakage on any other platform, but this change should have been present anyway.

(cherry picked from commit dd2968f21e641945026db4bbdf02b3c13f833d74)
Signed-off-by: Bruce A. Mah <[email protected]>

show more ...


Revision tags: 3.0.7, 3.0.6, 3.0.5, 3.0.4, 3.0.3, 3.0.2, 3.0.1, 3.0-BETA5
# 07957918 07-Feb-2013 Jef Poskanzer <[email protected]>

Portability fix for cJSON.


# cda2ce2a 06-Feb-2013 Jef Poskanzer <[email protected]>

Fixed cjson.c to no longer require -lm.


# 5cd3317d 12-Dec-2012 Jef Poskanzer <[email protected]>

Get rid of compiler warning.


# 88dd44b0 12-Dec-2012 Jef Poskanzer <[email protected]>

Need a couple more include files to compile on FreeBSD.


# ec2d0670 12-Dec-2012 Jef Poskanzer <[email protected]>

Switched to using a new timer package, adapted from thttpd and http_load.


# d23d944f 27-Oct-2012 jef <[email protected]>

Fix JSON parsing to handle very long ints better. Should still
do something better about them on output.


# ea71aaea 26-Oct-2012 jef <[email protected]>

Fixed cjson to not need -lm any more, by adding an ipow() routine
to use instead of pow().


# 23481e79 18-Oct-2012 jef <[email protected]>

Converted the results exchange to use JSON.


# a497129b 15-Oct-2012 jef <[email protected]>

Oops, the cjson files need to be in the src directory.
Also changed the makefiles so that cjson gets compiled and linked in.
Next step: actually call it.