aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* doc: added doc for encode_skip_unsupported_value_types.HEAD2.1.0.14masterlijunlong2024-08-011-0/+30
|
* doc: add comment for dtoa.c.lijunlong2024-08-011-0/+4
|
* doc: update location of cjson documentation.James Hudson2024-06-211-1/+1
| | | The kyne.com.au server seems to have moved to kyne.au
* feature: Lua 5.3 + 5.4 integer support, with CI and conflicts fixed.Hisham Muhammad2024-06-1115-73/+236
| | | | | | | | | | Co-Authored-By: Hisham Muhammad <hisham@gobolinux.org> Co-authored-by: Mark Pulford <mark@kyne.com.au> Co-authored-by: ichenq <ichenq@gmail.com> Co-authored-by: Cloud Wu <cloudwu@gmail.com> Co-authored-by: caijietao <t0350.prog@gmail.com> Co-authored-by: actboy168 <actboy168@gmail.com> Co-authored-by: wudeng <wudeng256@gmail.com> Co-authored-by: caiyiheng <rangercyh@qq.com>
* bugfix: bus error or SIGSEGV caused by encode not keep buffer.hyw08102024-03-011-0/+4
|
* Bugfix: Lua cjson integer overflow issues (CVE-2022-24834) (#94)2.1.0.13lijunlong2023-07-204-112/+55
| | | | | | | * Fix integer overflows due to using wrong integer size. * Add assertions / panic when overflow still happens. Co-authored-by: Oran Agra <oran@redislabs.com> Co-authored-by: Yossi Gottlieb <yossigo@gmail.com>
* bumped version to 2.1.0.12.2.1.0.12lijunlong2023-02-221-0/+0
|
* Add updated netlib dtoa.c from https://netlib.sandia.gov/fp/dtoa.c lijunlong2023-02-226-514/+2389
| | | Co-authored-by: Jesper Lundgren <jesperlundgren@exosite.com>
* feature: Add option to skip invalid value types. lijunlong2023-02-225-16/+79
| | | Co-authored-by: Jesper Lundgren <jesperlundgren@exosite.com>
* optimization: add void to functions with no arguments to prevent compiler ↵lijunlong2023-02-222-4/+4
| | | | warning.
* bumped version to 2.1.0.11. (#86)Johnny Wang2023-01-193-4/+4
|
* add lua 5.4 to test suite2.1.0.11leaf corcoran2022-10-171-1/+1
|
* bugfix: empty_array can not work on Apple because csjon did not compare ↵Datong Sun2022-01-131-1/+1
| | | | | | | | light userdata address with masked address (#82) Since we used `json_lightudata_mask` when creating lightuserdata, same mask should be applied when comparing the return of `touserdata` Fixes #81.
* bugfix: windows luarocks make doesn't export cjson.safe.momoterraw2022-01-091-0/+3
|
* bumped version to 2.1.0.10. (#79)2.1.0.10rc12.1.0.10Johnny Wang2021-12-103-4/+4
|
* bugfix: fixed bugs suspected by cppcheck: shift signed 32-bit value by 31 ↵Johnny Wang2021-10-191-3/+7
| | | | | | | | | bits and uninitialized variable. (#76) [dtoa.c:2453] -> [dtoa.c:2454]: (warning) Shifting signed 32-bit value by 31 bits is undefined behaviour. See condition at line 2453. [dtoa.c:2846]: (error) Uninitialized variable: bb [dtoa.c:2847]: (error) Uninitialized variable: bd [dtoa.c:2848]: (error) Uninitialized variable: bs [dtoa.c:2850]: (error) Uninitialized variable: delta
* bugfix: fixed a possible division by zero bugs found by cppcheck. (#75)Johnny Wang2021-10-181-1/+1
|
* doc: minor tweak in README.md (#71)ali-ghazi782021-09-231-1/+1
|
* travis-ci: remove clang compiler mode from travis to save credits. (#72)Johnny Wang2021-07-081-1/+0
|
* bump version to 2.1.0.92.1.0.9leaf corcoran2021-02-153-4/+4
|
* Update CI (#68)leaf2021-01-081-2/+3
| | | | | * update luarocks action * apt-get update * run tests on pull request as well
* added -g by default.Yichun Zhang (agentzh)2020-07-091-1/+1
|
* write sort_json, use it on perl tests to prevent hash table ordering failuresleaf corcoran2020-04-252-5/+69
|
* run with gcc and clangleaf corcoran2020-04-251-1/+9
|
* ignore dtoa.c for cppcheck, don't share lua headers (breaks due to define)leaf corcoran2020-04-251-1/+1
|
* bring cppcheck backleaf corcoran2020-04-251-1/+4
|
* attempt to run openresty perl testsleaf corcoran2020-04-252-3/+16
|
* cmake doesn't support finding luajit, so skip itleaf corcoran2020-04-252-12/+20
|
* attempting to fix luajit cmake buildleaf corcoran2020-04-251-1/+1
|
* use different header path for luajit make buildsleaf corcoran2020-04-251-1/+6
|
* support error message testing for modern versions of lualeaf corcoran2020-04-251-12/+56
|
* add one_of testing to avoid hash table ordering causing test to failleaf corcoran2020-04-252-3/+33
|
* make tests fail when they failleaf corcoran2020-04-251-2/+2
|
* tell cmake where lua isleaf corcoran2020-04-251-1/+1
|
* use local lua for makefile buildleaf corcoran2020-04-252-2/+2
|
* build after tests, so tests can do their own build testleaf corcoran2020-04-251-3/+4
|
* fail if tests are blockedleaf corcoran2020-04-251-1/+1
|
* see what happens if we run tests on github actionsleaf corcoran2020-04-251-0/+29
|
* use macro instead of header defines for Lua 5.2+ supportleaf corcoran2020-04-251-4/+4
|
* Lua 5.2+ maxn supportleaf corcoran2020-04-251-1/+11
|
* Lua 5.2+ unpack supportleaf corcoran2020-04-251-0/+2
|
* support lua 5.3 with LUA_COMPAT_5_1leaf corcoran2020-04-251-0/+1
|
* support lua 5.2 with LUA_COMPAT_ALLleaf corcoran2020-04-251-0/+3
|
* feature: add option to disable forward slash escaping2.1.0.8rc12.1.0.8Jesper Lundgren2020-03-243-0/+50
| | | | Thanks @spacewander for optimization and documentation.
* bugfix: we now only apply the lightuserdata mask on platforms that are at ↵2.1.0.7rc22.1.0.7罗泽轩2018-12-071-0/+5
| | | | least 64bits.
* feature: ported to the ARM64 platform by masking off the bits higher than ↵2.1.0.7rc1spacewander2018-10-171-9/+14
| | | | | | 47-bit in the lightud. Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
* luarocks: bumped version to 2.1.0.6.WenMing2018-04-261-2/+3
| | | | Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
* bumped version to 2.1.0.6.2.1.0.6Yichun Zhang (agentzh)2018-04-192-2/+2
|
* optimize: improved forward-compatibility with older versions of Lua/LuaJIT.Thibault Charbonnier2018-01-021-6/+9
| | | | Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
* bugfix: fixed the C compiler warning "SO C90 forbids mixed declarations and ↵2.1.0.6rc2Yichun Zhang (agentzh)2017-11-171-2/+3
| | | | code" on older operating systems.