]> git.kaiwu.me - njs.git/commit
Fixed memory over-read in njs_utf8_prev() and njs_utf8_next().
authorVadim Zhestikov <v.zhestikov@f5.com>
Thu, 30 Nov 2023 04:46:32 +0000 (20:46 -0800)
committerVadim Zhestikov <v.zhestikov@f5.com>
Thu, 30 Nov 2023 04:46:32 +0000 (20:46 -0800)
commit0313f3a0f2fcf649943d2683c782040cc2c7810b
treec807e44d5e8fbeb87e912883ff350cb0d6dfed59
parent08fb02c5f23c19af5f3fe58a223e702bba35b0f2
Fixed memory over-read in njs_utf8_prev() and njs_utf8_next().

Previously, njs_utf8_next() might over-read up to 1 byte
beyond the string memory. Whereas njs_utf8_prev() might
over-read unlimited number of bytes before the string.
src/njs_iterator.c
src/njs_string.c
src/njs_utf8.h