]> git.kaiwu.me - njs.git/commitdiff
Segfault has been fixed when global frame was skipped on
authorIgor Sysoev <igor@sysoev.ru>
Thu, 14 Jan 2016 08:36:33 +0000 (11:36 +0300)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 14 Jan 2016 08:36:33 +0000 (11:36 +0300)
function return because of uninitialized frame skip flag.
Thanks to 洪志道 (Hong Zhi Dao).

njs/njscript.c

index f57956e8f166aae69f4b6489b67135a959169f08..e2468b97892233a62e7562a94d8dad62b0b1094c 100644 (file)
@@ -289,6 +289,7 @@ njs_vm_clone(njs_vm_t *vm, nxt_mem_cache_pool_t *mcp, void **external)
         frame->native.previous = NULL;
         frame->native.arguments = NULL;
         frame->native.first = 1;
+        frame->native.skip = 0;
 
         frame->native.exception.next = NULL;
         frame->native.exception.catch = NULL;