]> git.kaiwu.me - njs.git/commit
Fixed JSON.stringify() and njs.dump() allocation error handling.
authorDmitry Volyntsev <xeioex@nginx.com>
Tue, 26 Nov 2019 15:44:11 +0000 (18:44 +0300)
committerDmitry Volyntsev <xeioex@nginx.com>
Tue, 26 Nov 2019 15:44:11 +0000 (18:44 +0300)
commite57d07c3d65184bfa9c9de6fd10e87ef0ec60b56
tree34b6af52b1b6bcdaef5eb9210cdfe006096f784a
parentb759d244deaf8787ed7abf5c0aab2503fd2b7bb3
Fixed JSON.stringify() and njs.dump() allocation error handling.

Previously, the return value of njs_json_buf_append() was not
verified in some places.

Found by Coverity (CID 1456031).
src/njs_json.c