about summary refs log tree commit diff stats
path: root/miasm/ir/ir.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2025-01-23 21:56:03 +0100
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2025-01-24 08:36:24 +0100
commite46b1fc2551d112f2f7c2849a780d102d84b8f7b (patch)
treed32a0a96849f16012013bbb245ded833558b1741 /miasm/ir/ir.py
parentcbc722eed8dc807955bd46f84886ae74d161dd0c (diff)
downloadfocaccia-miasm-e46b1fc2551d112f2f7c2849a780d102d84b8f7b.tar.gz
focaccia-miasm-e46b1fc2551d112f2f7c2849a780d102d84b8f7b.zip
Fix xdot output
Signed-off-by: Fabrice Desclaux <fabrice.desclaux@cea.fr>
Diffstat (limited to 'miasm/ir/ir.py')
-rw-r--r--miasm/ir/ir.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm/ir/ir.py b/miasm/ir/ir.py
index d26c5d1d..57bff4db 100644
--- a/miasm/ir/ir.py
+++ b/miasm/ir/ir.py
@@ -48,7 +48,7 @@ def _expr_loc_to_symb(expr, loc_db):
     return m2_expr.ExprId(name, expr.size)
 
 
-ESCAPE_CHARS = re.compile(r'[\{\}&|<>]')
+ESCAPE_CHARS = re.compile('[' + re.escape('{}[]') + '&|<>' + ']')
 
 class TranslatorHtml(Translator):
     __LANG__ = "custom_expr_color"