From: Igor Sysoev Date: Thu, 14 Jan 2016 08:36:33 +0000 (+0300) Subject: Segfault has been fixed when global frame was skipped on X-Git-Tag: 0.1.0~83 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=466a655f88b3ecaba0813682c8ab95cf500fef55;p=njs.git Segfault has been fixed when global frame was skipped on function return because of uninitialized frame skip flag. Thanks to 洪志道 (Hong Zhi Dao). --- diff --git a/njs/njscript.c b/njs/njscript.c index f57956e8..e2468b97 100644 --- a/njs/njscript.c +++ b/njs/njscript.c @@ -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;