From 466a655f88b3ecaba0813682c8ab95cf500fef55 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 14 Jan 2016 11:36:33 +0300 Subject: [PATCH] =?utf8?q?Segfault=20has=20been=20fixed=20when=20global=20?= =?utf8?q?frame=20was=20skipped=20on=20function=20return=20because=20of=20?= =?utf8?q?uninitialized=20frame=20skip=20flag.=20Thanks=20to=20=E6=B4=AA?= =?utf8?q?=E5=BF=97=E9=81=93=20(Hong=20Zhi=20Dao).?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- njs/njscript.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.47.3