mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-08 18:46:12 +00:00
Fixed #1772 AS1/2 decompilation - StackOverflow during getVariables function
This commit is contained in:
@@ -999,7 +999,7 @@ public abstract class Action implements GraphSourceItem {
|
||||
}
|
||||
|
||||
private static HashMap<String, GraphTargetItem> prepareVariables(GraphSourceItemContainer cnt, HashMap<String, GraphTargetItem> variables) {
|
||||
HashMap<String, GraphTargetItem> variables2 = Helper.deepCopy(variables);
|
||||
HashMap<String, GraphTargetItem> variables2 = new LinkedHashMap<>(variables);
|
||||
if (cnt instanceof ActionDefineFunction || cnt instanceof ActionDefineFunction2) {
|
||||
for (int r = 0; r < 256; r++) {
|
||||
if (variables2.containsKey("__register" + r)) {
|
||||
|
||||
@@ -660,7 +660,10 @@ public class Helper {
|
||||
} catch (IOException | ClassNotFoundException ex) {
|
||||
Logger.getLogger(Helper.class.getName()).log(Level.SEVERE, "Copy error", ex);
|
||||
return null;
|
||||
} catch (StackOverflowError se) {
|
||||
throw new StackOverflowError("Stack overflow in deepcopy");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static List<Object> toList(Object... rest) {
|
||||
|
||||
Reference in New Issue
Block a user