[njs] A fix of bug introduced in changeset 7f1f3dcb278f.

Igor Sysoev igor at sysoev.ru
Mon May 29 19:13:53 UTC 2017


details:   http://hg.nginx.org/njs/rev/4e2da602c2a3
branches:  
changeset: 346:4e2da602c2a3
user:      Igor Sysoev <igor at sysoev.ru>
date:      Mon May 29 22:13:21 2017 +0300
description:
A fix of bug introduced in changeset 7f1f3dcb278f.

diffstat:

 njs/njs_parser.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r c0bdd23e740e -r 4e2da602c2a3 njs/njs_parser.c
--- a/njs/njs_parser.c	Mon May 29 10:17:36 2017 +0300
+++ b/njs/njs_parser.c	Mon May 29 22:13:21 2017 +0300
@@ -2434,7 +2434,7 @@ njs_parser_escape_string_create(njs_vm_t
                 }
 
             } else {
-                if ((src - p) > 6 || src == end || *(++src) == '}') {
+                if ((src - p) > 6 || src == end || *src++ != '}') {
                     goto invalid;
                 }
             }


More information about the nginx-devel mailing list