Welcome! Log In Create A New Profile

Advanced

[PATCH] Core: return error when the first byte is above 0xf5 in utf-8

u5h
February 22, 2023 10:12AM
# HG changeset patch
# User Yugo Horie <u5.horie@gmail.com>
# Date 1677077775 -32400
# Wed Feb 22 23:56:15 2023 +0900
# Node ID 1a9487706c6af90baf2ed770db29f689c3850721
# Parent cffaf3f2eec8fd33605c2a37814f5ffc30371989
core: return error when the first byte is above 0xf5 in utf-8

* see https://datatracker.ietf.org/doc/html/rfc3629#section-4

diff -r cffaf3f2eec8 -r 1a9487706c6a src/core/ngx_string.c
--- a/src/core/ngx_string.c Thu Feb 02 23:38:48 2023 +0300
+++ b/src/core/ngx_string.c Wed Feb 22 23:56:15 2023 +0900
@@ -1364,7 +1364,7 @@

u = **p;

- if (u >= 0xf0) {
+ if (u < 0xf5 && u >= 0xf0) {

u &= 0x07;
valid = 0xffff;
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] Core: return error when the first byte is above 0xf5 in utf-8

u5h 523 February 22, 2023 10:12AM

Re: [PATCH] Core: return error when the first byte is above 0xf5 in utf-8

Maxim Dounin 128 February 22, 2023 04:42PM

Re: [PATCH] Core: return error when the first byte is above 0xf5 in utf-8

u5h 112 February 22, 2023 07:26PM

Re: [PATCH] Core: return error when the first byte is above 0xf5 in utf-8

Maxim Dounin 113 March 01, 2023 06:52PM

Re: [PATCH] Core: return error when the first byte is above 0xf5 in utf-8

u5h 102 March 02, 2023 03:18AM

Re: [PATCH] Core: return error when the first byte is above 0xf5 in utf-8

Maxim Dounin 128 March 02, 2023 10:50AM

Re: [PATCH] Core: return error when the first byte is above 0xf5 in utf-8

Roman Arutyunyan 149 March 13, 2023 08:56AM



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

Online Users

Guests: 298
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready