]> git.kaiwu.me - njs.git/commitdiff
A scope has been added to literal nodes.
authorIgor Sysoev <igor@sysoev.ru>
Mon, 16 Jan 2017 15:14:01 +0000 (18:14 +0300)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 16 Jan 2017 15:14:01 +0000 (18:14 +0300)
Found with afl-fuzz.

njs/njs_parser.c

index 4fdbb173f00292cda9fb92034e29d4c274f7c576..6d881f1bdceea66f26339f7f8553081a38e510d3 100644 (file)
@@ -1778,6 +1778,7 @@ njs_parser_terminal(njs_vm_t *vm, njs_parser_t *parser, njs_token_t token)
     }
 
     node->token = token;
+    node->scope = parser->scope;
 
     switch (token) {