]> granicus.if.org Git - jq/commit
Heap buffer overflow in tokenadd() (fix #105)
authorNicolas Williams <nico@cryptonector.com>
Sat, 24 Oct 2015 22:24:57 +0000 (17:24 -0500)
committerNicolas Williams <nico@cryptonector.com>
Sat, 24 Oct 2015 22:27:56 +0000 (17:27 -0500)
commit8eb1367ca44e772963e704a700ef72ae2e12babd
tree3d9a25a0d68eecd1ddac763a04f92dcc21d84655
parent2f79004f856532c479b79e226798a3dcc0a127f0
Heap buffer overflow in tokenadd() (fix #105)

This was an off-by one: the NUL terminator byte was not allocated on
resize.  This was triggered by JSON-encoded numbers longer than 256
bytes.
src/jv_parse.c