<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lua-cjson, branch 2.1.0.16</title>
<subtitle>A mirror of https://github.com/openresty/lua-cjson
</subtitle>
<id>https://git.lua4.win/lua-cjson/atom?h=2.1.0.16</id>
<link rel='self' href='https://git.lua4.win/lua-cjson/atom?h=2.1.0.16'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/'/>
<updated>2026-01-19T00:17:26+00:00</updated>
<entry>
<title>bumped to to v2.1.0.16</title>
<updated>2026-01-19T00:17:26+00:00</updated>
<author>
<name>lijunlong</name>
<email>lijunlong@openresty.com</email>
</author>
<published>2026-01-19T00:17:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=e6daf3cdfac61055af3f7d88d9886942ff0de6e6'/>
<id>urn:sha1:e6daf3cdfac61055af3f7d88d9886942ff0de6e6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bugfix: fix truncation of decoded numbers outside lua_Integer's range (#116)</title>
<updated>2025-10-30T02:35:41+00:00</updated>
<author>
<name>James McCoy</name>
<email>jamessan@jamessan.com</email>
</author>
<published>2025-10-30T02:35:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=35bac3c9741af54d121a8ef4e04ff20755943444'/>
<id>urn:sha1:35bac3c9741af54d121a8ef4e04ff20755943444</id>
<content type='text'>
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 &lt;jamessan@jamessan.com&gt;</content>
</entry>
<entry>
<title>gugfix: fixed Makefile.</title>
<updated>2025-10-16T04:23:59+00:00</updated>
<author>
<name>lijunlong</name>
<email>lijunlong@openresty.com</email>
</author>
<published>2025-10-16T04:23:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=cd944c13a94713a984c4593fc3639e49ae59b91d'/>
<id>urn:sha1:cd944c13a94713a984c4593fc3639e49ae59b91d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>doc: added doc for encode_skip_unsupported_value_types.</title>
<updated>2024-08-01T01:23:44+00:00</updated>
<author>
<name>lijunlong</name>
<email>lijunlong@openresty.com</email>
</author>
<published>2024-08-01T01:23:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=91ca29db9a4a4fd0eedaebcd5d5f3ba2ace5ae63'/>
<id>urn:sha1:91ca29db9a4a4fd0eedaebcd5d5f3ba2ace5ae63</id>
<content type='text'>
</content>
</entry>
<entry>
<title>doc: add comment for dtoa.c.</title>
<updated>2024-08-01T01:23:44+00:00</updated>
<author>
<name>lijunlong</name>
<email>lijunlong@openresty.com</email>
</author>
<published>2024-06-11T01:44:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=b0b4c58df8fba8f7ea36c69bbdb517f9732b1bcf'/>
<id>urn:sha1:b0b4c58df8fba8f7ea36c69bbdb517f9732b1bcf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>doc: update location of cjson documentation.</title>
<updated>2024-06-21T00:38:03+00:00</updated>
<author>
<name>James Hudson</name>
<email>mrthehud@gmail.com</email>
</author>
<published>2024-06-21T00:38:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=42ee52e79e277c496d8103618c811c6eb8f4f586'/>
<id>urn:sha1:42ee52e79e277c496d8103618c811c6eb8f4f586</id>
<content type='text'>
The kyne.com.au server seems to have moved to kyne.au</content>
</entry>
<entry>
<title>feature: Lua 5.3 + 5.4 integer support, with CI and conflicts fixed.</title>
<updated>2024-06-11T01:39:55+00:00</updated>
<author>
<name>Hisham Muhammad</name>
<email>hisham@gobolinux.org</email>
</author>
<published>2024-06-11T01:39:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=c92ecda53337490633c95e6ae00e322dc9ad1fb8'/>
<id>urn:sha1:c92ecda53337490633c95e6ae00e322dc9ad1fb8</id>
<content type='text'>
Co-Authored-By: Hisham Muhammad &lt;hisham@gobolinux.org&gt;
Co-authored-by: Mark Pulford &lt;mark@kyne.com.au&gt;
Co-authored-by: ichenq &lt;ichenq@gmail.com&gt;
Co-authored-by: Cloud Wu &lt;cloudwu@gmail.com&gt;
Co-authored-by: caijietao &lt;t0350.prog@gmail.com&gt;
Co-authored-by: actboy168 &lt;actboy168@gmail.com&gt;
Co-authored-by: wudeng &lt;wudeng256@gmail.com&gt;
Co-authored-by: caiyiheng &lt;rangercyh@qq.com&gt;</content>
</entry>
<entry>
<title>bugfix: bus error or SIGSEGV caused by encode not keep buffer.</title>
<updated>2024-03-01T01:18:48+00:00</updated>
<author>
<name>hyw0810</name>
<email>1210612004@qq.com</email>
</author>
<published>2024-03-01T01:18:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=d20576d5cef3d7aa3b6d62db7aee9d9d5f03cc70'/>
<id>urn:sha1:d20576d5cef3d7aa3b6d62db7aee9d9d5f03cc70</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Bugfix: Lua cjson integer overflow issues (CVE-2022-24834) (#94)</title>
<updated>2023-07-20T15:47:32+00:00</updated>
<author>
<name>lijunlong</name>
<email>lijunlong@openresty.com</email>
</author>
<published>2023-07-20T15:47:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=2bfad8f5eeb821357d2ada29506e864ff7ec947e'/>
<id>urn:sha1:2bfad8f5eeb821357d2ada29506e864ff7ec947e</id>
<content type='text'>
* Fix integer overflows due to using wrong integer size.
* Add assertions / panic when overflow still happens.

Co-authored-by: Oran Agra &lt;oran@redislabs.com&gt;
Co-authored-by: Yossi Gottlieb &lt;yossigo@gmail.com&gt;</content>
</entry>
<entry>
<title>bumped version to 2.1.0.12.</title>
<updated>2023-02-22T14:01:42+00:00</updated>
<author>
<name>lijunlong</name>
<email>lijunlong@openresty.com</email>
</author>
<published>2023-02-22T14:01:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=881accc8fadca5ec02aa34d364df2a1aa25cd2f9'/>
<id>urn:sha1:881accc8fadca5ec02aa34d364df2a1aa25cd2f9</id>
<content type='text'>
</content>
</entry>
</feed>
