| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | bugfix: fix truncation of decoded numbers outside lua_Integer's range (#116)HEADor-1.29.4master | James McCoy | 2025-10-30 | 1 | -1/+9 |
| | | | | | | | | | | | | | json_next_number_token stores the `long long` return value from `stroll` in a `lua_Integer` (which is typically a typedef for `ptrdiff_t`). On 32-bit platforms, this ends up storing an 8-byte number into a 4-byte variable, truncating the value. Instead, store the converted value in a temporary `long long` variable so we can detect the scenario and decode into a `lua_Number`. Signed-off-by: James McCoy <jamessan@jamessan.com> | ||||
| * | gugfix: fixed Makefile.2.1.0.15 | lijunlong | 2025-10-16 | 1 | -3/+1 |
| | | |||||
| * | doc: added doc for encode_skip_unsupported_value_types.2.1.0.14 | lijunlong | 2024-08-01 | 1 | -0/+30 |
| | | |||||
| * | doc: add comment for dtoa.c. | lijunlong | 2024-08-01 | 1 | -0/+4 |
| | | |||||
| * | doc: update location of cjson documentation. | James Hudson | 2024-06-21 | 1 | -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 Muhammad | 2024-06-11 | 15 | -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. | hyw0810 | 2024-03-01 | 1 | -0/+4 |
| | | |||||
| * | Bugfix: Lua cjson integer overflow issues (CVE-2022-24834) (#94)2.1.0.13 | lijunlong | 2023-07-20 | 4 | -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.12 | lijunlong | 2023-02-22 | 1 | -0/+0 |
| | | |||||
| * | Add updated netlib dtoa.c from https://netlib.sandia.gov/fp/dtoa.c | lijunlong | 2023-02-22 | 6 | -514/+2389 |
| | | | | Co-authored-by: Jesper Lundgren <jesperlundgren@exosite.com> | ||||
| * | feature: Add option to skip invalid value types. | lijunlong | 2023-02-22 | 5 | -16/+79 |
| | | | | Co-authored-by: Jesper Lundgren <jesperlundgren@exosite.com> | ||||
| * | optimization: add void to functions with no arguments to prevent compiler ↵ | lijunlong | 2023-02-22 | 2 | -4/+4 |
| | | | | | warning. | ||||
| * | bumped version to 2.1.0.11. (#86) | Johnny Wang | 2023-01-19 | 3 | -4/+4 |
| | | |||||
| * | add lua 5.4 to test suite2.1.0.11 | leaf corcoran | 2022-10-17 | 1 | -1/+1 |
| | | |||||
| * | bugfix: empty_array can not work on Apple because csjon did not compare ↵ | Datong Sun | 2022-01-13 | 1 | -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. | momoterraw | 2022-01-09 | 1 | -0/+3 |
| | | |||||
| * | bumped version to 2.1.0.10. (#79)2.1.0.10rc12.1.0.10 | Johnny Wang | 2021-12-10 | 3 | -4/+4 |
| | | |||||
| * | bugfix: fixed bugs suspected by cppcheck: shift signed 32-bit value by 31 ↵ | Johnny Wang | 2021-10-19 | 1 | -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 Wang | 2021-10-18 | 1 | -1/+1 |
| | | |||||
| * | doc: minor tweak in README.md (#71) | ali-ghazi78 | 2021-09-23 | 1 | -1/+1 |
| | | |||||
| * | travis-ci: remove clang compiler mode from travis to save credits. (#72) | Johnny Wang | 2021-07-08 | 1 | -1/+0 |
| | | |||||
| * | bump version to 2.1.0.92.1.0.9 | leaf corcoran | 2021-02-15 | 3 | -4/+4 |
| | | |||||
| * | Update CI (#68) | leaf | 2021-01-08 | 1 | -2/+3 |
| | | | | | | * update luarocks action * apt-get update * run tests on pull request as well | ||||
| * | added -g by default. | Yichun Zhang (agentzh) | 2020-07-09 | 1 | -1/+1 |
| | | |||||
| * | write sort_json, use it on perl tests to prevent hash table ordering failures | leaf corcoran | 2020-04-25 | 2 | -5/+69 |
| | | |||||
| * | run with gcc and clang | leaf corcoran | 2020-04-25 | 1 | -1/+9 |
| | | |||||
| * | ignore dtoa.c for cppcheck, don't share lua headers (breaks due to define) | leaf corcoran | 2020-04-25 | 1 | -1/+1 |
| | | |||||
| * | bring cppcheck back | leaf corcoran | 2020-04-25 | 1 | -1/+4 |
| | | |||||
| * | attempt to run openresty perl tests | leaf corcoran | 2020-04-25 | 2 | -3/+16 |
| | | |||||
| * | cmake doesn't support finding luajit, so skip it | leaf corcoran | 2020-04-25 | 2 | -12/+20 |
| | | |||||
| * | attempting to fix luajit cmake build | leaf corcoran | 2020-04-25 | 1 | -1/+1 |
| | | |||||
| * | use different header path for luajit make builds | leaf corcoran | 2020-04-25 | 1 | -1/+6 |
| | | |||||
| * | support error message testing for modern versions of lua | leaf corcoran | 2020-04-25 | 1 | -12/+56 |
| | | |||||
| * | add one_of testing to avoid hash table ordering causing test to fail | leaf corcoran | 2020-04-25 | 2 | -3/+33 |
| | | |||||
| * | make tests fail when they fail | leaf corcoran | 2020-04-25 | 1 | -2/+2 |
| | | |||||
| * | tell cmake where lua is | leaf corcoran | 2020-04-25 | 1 | -1/+1 |
| | | |||||
| * | use local lua for makefile build | leaf corcoran | 2020-04-25 | 2 | -2/+2 |
| | | |||||
| * | build after tests, so tests can do their own build test | leaf corcoran | 2020-04-25 | 1 | -3/+4 |
| | | |||||
| * | fail if tests are blocked | leaf corcoran | 2020-04-25 | 1 | -1/+1 |
| | | |||||
| * | see what happens if we run tests on github actions | leaf corcoran | 2020-04-25 | 1 | -0/+29 |
| | | |||||
| * | use macro instead of header defines for Lua 5.2+ support | leaf corcoran | 2020-04-25 | 1 | -4/+4 |
| | | |||||
| * | Lua 5.2+ maxn support | leaf corcoran | 2020-04-25 | 1 | -1/+11 |
| | | |||||
| * | Lua 5.2+ unpack support | leaf corcoran | 2020-04-25 | 1 | -0/+2 |
| | | |||||
| * | support lua 5.3 with LUA_COMPAT_5_1 | leaf corcoran | 2020-04-25 | 1 | -0/+1 |
| | | |||||
| * | support lua 5.2 with LUA_COMPAT_ALL | leaf corcoran | 2020-04-25 | 1 | -0/+3 |
| | | |||||
| * | feature: add option to disable forward slash escaping2.1.0.8rc12.1.0.8 | Jesper Lundgren | 2020-03-24 | 3 | -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-07 | 1 | -0/+5 |
| | | | | | least 64bits. | ||||
| * | feature: ported to the ARM64 platform by masking off the bits higher than ↵2.1.0.7rc1 | spacewander | 2018-10-17 | 1 | -9/+14 |
| | | | | | | | 47-bit in the lightud. Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com> | ||||
| * | luarocks: bumped version to 2.1.0.6. | WenMing | 2018-04-26 | 1 | -2/+3 |
| | | | | | Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com> | ||||
| * | bumped version to 2.1.0.6.2.1.0.6 | Yichun Zhang (agentzh) | 2018-04-19 | 2 | -2/+2 |
| | | |||||
