Welcome! Log In Create A New Profile

Advanced

[njs] Fixed clearing UTF-8 context for two-byte codepoints.

Alexander Borisov
July 22, 2020 08:22AM
details: https://hg.nginx.org/njs/rev/d88b65c37ecc
branches:
changeset: 1475:d88b65c37ecc
user: Alexander Borisov <alexander.borisov@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;
}


_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[njs] Fixed clearing UTF-8 context for two-byte codepoints.

Alexander Borisov 78 July 22, 2020 08:22AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 105
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready