From c7e75c9e81a7cb88be4286f3069673a47791aab8 Mon Sep 17 00:00:00 2001 From: Allen Yang <26543690+frostwing98@users.noreply.github.com> Date: Mon, 24 Jul 2023 17:42:59 -0400 Subject: [PATCH] Update wxjs.py Resolve the error of index out of range, which resulting in failure to parse certain pages and missing of data flow --- taint_mini/wxjs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/taint_mini/wxjs.py b/taint_mini/wxjs.py index a943d0e..80c5d94 100644 --- a/taint_mini/wxjs.py +++ b/taint_mini/wxjs.py @@ -86,6 +86,8 @@ def obtain_callee_from_call_expr(node): def obtain_var_decl_callee(node): + if(len(node.children)==0): + return "" return ".".join([i.attributes["name"] for i in node.children[0].children])