dot escaping

This commit is contained in:
Jean-Marie Mineau 2025-06-18 11:50:48 +02:00
parent 110f0c0215
commit c159e3e599
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
2 changed files with 10 additions and 2 deletions

View file

@ -4,8 +4,9 @@
- tests
- https://source.android.com/docs/core/runtime/dex-format#system-annotation
- goto size computation
- Check label duplication (maybe allow identical labels at the same address only?)
- no nop when no payload
- name register / parameters
- fix flake
- fix python binding
- fix python binding or remove
- clean repo

View file

@ -266,7 +266,14 @@ impl<'a> MethodCFG<'a> {
let block_name = if i == 0 {
"ENTRY".into()
} else if !node.labels.is_empty() {
format!("block '{}'", node.labels[0])
format!(
"block '{}'",
node.labels[0]
.replace("&", "&amp;")
.replace(">", "&gt;")
.replace("<", "&lt;")
.replace("\"", "&quot;")
)
} else {
format!("block {i}")
};