From b40c51634a3ccebfa3f589d91cb835d8c17cf9b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sat, 9 Jan 2021 16:11:18 +0100 Subject: [PATCH] Escaping in P-code Graphviz exporter (Problems with graphs containing backslash strings) --- CHANGELOG.md | 1 + .../decompiler/flash/exporters/script/PcodeGraphVizExporter.java | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b73421056..7053eb365 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ All notable changes to this project will be documented in this file. - #1548 correctly handle empty generated file names - #1379 AS3 - better handling local registers postincrement/decrement - Better unresolved if handling +- Escaping in P-code Graphviz exporter (Problems with graphs containing backslash strings) ## [11.3.0] - 2020-04-25 ### Added diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/script/PcodeGraphVizExporter.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/script/PcodeGraphVizExporter.java index 1d575dd8a..466b75160 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/script/PcodeGraphVizExporter.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/script/PcodeGraphVizExporter.java @@ -131,6 +131,7 @@ public class PcodeGraphVizExporter { } } String labelStr = blkCodeBuilder.toString(); + labelStr = labelStr.replace("\\", "\\\\"); labelStr = labelStr.replace("\"", "\\\""); labelStr = labelStr.replace("\r\n", "\\l"); String partBlockName = getBlockName(graphSource, part);