]> git.kaiwu.me - njs.git/commit
Improved processing of invalid surrogate pairs in JSON strings.
authorAlexander Borisov <alexander.borisov@nginx.com>
Tue, 28 May 2019 17:51:24 +0000 (20:51 +0300)
committerAlexander Borisov <alexander.borisov@nginx.com>
Tue, 28 May 2019 17:51:24 +0000 (20:51 +0300)
commit5fd752d0c0478188f6ea57d6b8e3ce97dabc9a52
tree0b1b37a0a2a1c51f9bac96b20441f2b423e85d4f
parent721af4cc5ec2470a69f0c680b0027b4d1339aff9
Improved processing of invalid surrogate pairs in JSON strings.

Previously, an exception was thrown on invalid surrogate pairs.
Now, all such pairs are converted to replacement character.
njs/njs_json.c
njs/test/njs_unit_test.c