dot escaping
This commit is contained in:
parent
110f0c0215
commit
c159e3e599
2 changed files with 10 additions and 2 deletions
3
TODO.md
3
TODO.md
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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("&", "&")
|
||||
.replace(">", ">")
|
||||
.replace("<", "<")
|
||||
.replace("\"", """)
|
||||
)
|
||||
} else {
|
||||
format!("block {i}")
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue