<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lua-cjson/strbuf.h, branch or-1.31.0</title>
<subtitle>A mirror of https://github.com/openresty/lua-cjson
</subtitle>
<id>https://git.lua4.win/lua-cjson/atom?h=or-1.31.0</id>
<link rel='self' href='https://git.lua4.win/lua-cjson/atom?h=or-1.31.0'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/'/>
<updated>2023-07-20T15:47:32+00:00</updated>
<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>feature: Add option to skip invalid value types. </title>
<updated>2023-02-22T03:28:15+00:00</updated>
<author>
<name>lijunlong</name>
<email>lijunlong@openresty.com</email>
</author>
<published>2023-02-22T03:28:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=de93a78d3002ee72bb1c7e3a629d67e19623a4ae'/>
<id>urn:sha1:de93a78d3002ee72bb1c7e3a629d67e19623a4ae</id>
<content type='text'>
Co-authored-by: Jesper Lundgren &lt;jesperlundgren@exosite.com&gt;</content>
</entry>
<entry>
<title>feature: supports MS C compiler older than VC2012.</title>
<updated>2017-01-31T20:17:37+00:00</updated>
<author>
<name>spacewander</name>
<email>spacewanderlzx@gmail.com</email>
</author>
<published>2017-01-31T05:09:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=fd35fd98035735bc91c55d14832461e41dd0e193'/>
<id>urn:sha1:fd35fd98035735bc91c55d14832461e41dd0e193</id>
<content type='text'>
Signed-off-by: Yichun Zhang (agentzh) &lt;agentzh@gmail.com&gt;
</content>
</entry>
<entry>
<title>Update copyright date range to include 2012</title>
<updated>2012-03-04T08:24:34+00:00</updated>
<author>
<name>Mark Pulford</name>
<email>mark@kyne.com.au</email>
</author>
<published>2012-01-13T09:17:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=d6fc98ff60120b891fc3d94e18a61962b67e4c4c'/>
<id>urn:sha1:d6fc98ff60120b891fc3d94e18a61962b67e4c4c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add fpconv to work around comma decimal points</title>
<updated>2011-12-30T03:47:44+00:00</updated>
<author>
<name>Mark Pulford</name>
<email>mark@kyne.com.au</email>
</author>
<published>2011-12-30T03:47:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=2416b145073211b840781da6abf4b6d97f4657a6'/>
<id>urn:sha1:2416b145073211b840781da6abf4b6d97f4657a6</id>
<content type='text'>
Create a separate buffer and translate comma &lt;&gt; dot before calling
strtod(), and after calling sprintf() as required.

- Add "update_locale" Lua API call and init locale on module load.
- Move sprintf format string to fpconv
</content>
</entry>
<entry>
<title>Add support for runtime number precision config</title>
<updated>2011-05-29T08:33:22+00:00</updated>
<author>
<name>Mark Pulford</name>
<email>mark@kyne.com.au</email>
</author>
<published>2011-05-29T08:33:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=3d1c5e19f45cf484774926ba6e2555d1c8e4c39b'/>
<id>urn:sha1:3d1c5e19f45cf484774926ba6e2555d1c8e4c39b</id>
<content type='text'>
Add cjson.encode_number_precision(). Reducing the number precision from
14 to 3 can increase performance up to 50% with number heavy
conversions.
</content>
</entry>
<entry>
<title>Remove trailing whitespace</title>
<updated>2011-05-10T13:16:44+00:00</updated>
<author>
<name>Mark Pulford</name>
<email>mark@kyne.com.au</email>
</author>
<published>2011-05-10T13:16:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=132e8757bc800d51058e3e1e4d2d73a0279ca0ac'/>
<id>urn:sha1:132e8757bc800d51058e3e1e4d2d73a0279ca0ac</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add runtime option for persistent encode buffer</title>
<updated>2011-05-10T13:02:01+00:00</updated>
<author>
<name>Mark Pulford</name>
<email>mark@kyne.com.au</email>
</author>
<published>2011-05-10T13:02:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=126470cc7b6c2314c02805e4d00afe04b6b00312'/>
<id>urn:sha1:126470cc7b6c2314c02805e4d00afe04b6b00312</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Preallocate temporary decode string buffer</title>
<updated>2011-05-03T13:17:09+00:00</updated>
<author>
<name>Mark Pulford</name>
<email>mark@kyne.com.au</email>
</author>
<published>2011-05-03T13:17:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=e1001b2f316448ce171434f31410ffc150877a82'/>
<id>urn:sha1:e1001b2f316448ce171434f31410ffc150877a82</id>
<content type='text'>
The preallocated buffer removes the need for buffer length checks while
processing strings and results in a 10 - 15% speedup.
</content>
</entry>
<entry>
<title>Add strbuf_reset() to reset string length</title>
<updated>2011-05-03T10:17:50+00:00</updated>
<author>
<name>Mark Pulford</name>
<email>mark@kyne.com.au</email>
</author>
<published>2011-05-03T10:17:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=4cfafe0883da22cc020bb4e92d652ce16500b104'/>
<id>urn:sha1:4cfafe0883da22cc020bb4e92d652ce16500b104</id>
<content type='text'>
Add strbuf_reset() to reset string length and hide the string
implementation.
</content>
</entry>
</feed>
