[njs] Fixed clearing UTF-8 context for two-byte codepoints.
Alexander Borisov
alexander.borisov at nginx.com
Wed Jul 22 12:21:59 UTC 2020
details: https://hg.nginx.org/njs/rev/d88b65c37ecc
branches:
changeset: 1475:d88b65c37ecc
user: Alexander Borisov <alexander.borisov at nginx.com>
date: Wed Jul 22 15:21:13 2020 +0300
description:
Fixed clearing UTF-8 context for two-byte codepoints.
diffstat:
src/njs_utf8.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r b96ff1d52647 -r d88b65c37ecc src/njs_utf8.h
--- a/src/njs_utf8.h Wed Jul 22 15:21:13 2020 +0300
+++ b/src/njs_utf8.h Wed Jul 22 15:21:13 2020 +0300
@@ -103,6 +103,7 @@ njs_inline void
njs_utf8_decode_init(njs_unicode_decode_t *ctx)
{
ctx->need = 0x00;
+ ctx->lower = 0x00;
}
More information about the nginx-devel
mailing list