Welcome! Log In Create A New Profile

Advanced

[njs] A fix in decodeURI() and decodeURIComponent() functions.

August 31, 2016 12:04PM
details: http://hg.nginx.org/njs/rev/76f16f0ef6c5
branches:
changeset: 164:76f16f0ef6c5
user: Igor Sysoev <igor@sysoev.ru>
date: Wed Aug 31 17:51:54 2016 +0300
description:
A fix in decodeURI() and decodeURIComponent() functions.

diffstat:

njs/njs_string.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r c0aa3ecd2e83 -r 76f16f0ef6c5 njs/njs_string.c
--- a/njs/njs_string.c Wed Aug 31 15:53:13 2016 +0300
+++ b/njs/njs_string.c Wed Aug 31 17:51:54 2016 +0300
@@ -2372,6 +2372,7 @@ njs_string_decode(njs_vm_t *vm, njs_valu
byte = (d0 << 4) + d1;

if ((reserve[byte >> 5] & ((uint32_t) 1 << (byte & 0x1f))) == 0) {
+ size -= 2;
n += 2;
}
}

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

[njs] A fix in decodeURI() and decodeURIComponent() functions.

Igor Sysoev 1286 August 31, 2016 12:04PM



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

Online Users

Guests: 97
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready