From 5916c00bbd73f2f0db04a338dde73969cbfc2783 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sun, 28 Nov 2021 11:42:10 +0100 Subject: [PATCH] iframeloaded special case when it hits next graphpart (will this happen?) --- libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/Graph.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/Graph.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/Graph.java index 08a9700c1..c4bf288e9 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/Graph.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/Graph.java @@ -2085,6 +2085,13 @@ public class Graph { output.addAll(ex.getOutput()); for (GraphPart p : allParts) { if (p.containsIP(ex.getIp())) { + if (ipStart == p.start) { + //can this happen? TODO: find some example in the wild + currentRet.addAll(output); + //to check for stopparts,etc. we need to call printGraph again + part = p; + return printGraph(foundGotos, partCodes, partCodePos, visited, localData, stack, allParts, parent, part, stopPart, stopPartKind, loops, throwStates, ret, staticOperation, path, recursionLevel); + } exHappened = true; ipStart = ex.getIp(); part = p;