When decoding a string with escape sequences sure we need to make sure we don't advance our end pointer until we've checked we have enough buffer left to parse, as well as have peeked ahead to see that a unicode escape is approaching.
Thanks @kivikakk for helping me track down the actual bug here! (Previous attempt here)
This fix should be applied upstream on yajl itself as well, but I'm starting here since that's where the original issue was reported and we have a patched yajl embedded anyway.
When decoding a string with escape sequences sure we need to make sure we don't advance our
end
pointer until we've checked we have enough buffer left to parse, as well as have peeked ahead to see that a unicode escape is approaching.Thanks @kivikakk for helping me track down the actual bug here! (Previous attempt here)
This fix should be applied upstream on yajl itself as well, but I'm starting here since that's where the original issue was reported and we have a patched yajl embedded anyway.
Fixes #176