Skip to content

Commit 582e32d

Browse files
authored
Update 6.2-memleak.md
1 parent 23c3597 commit 582e32d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/6.2-memleak.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ impl<T> Drop for Proxy<T> {
3737
```
3838

3939
## What's behind rCanary?
40-
Canary is a component of RAP, and the overall architecture is as shown in the following diagram:
40+
Canary is a component of RAPx, and the overall architecture is as shown in the following diagram:
4141
![Framework of type analysis.](figure/rcanary.png)
4242

4343
It can generate SMT-Lib2 format constraints for Rust MIR and is implemented as a Cargo component. We design an encoder to abstract data with heap allocation and formalize a refined leak-free memory model based on boolean satisfiability.
@@ -71,9 +71,9 @@ Before using rCanary, please make sure that the Z3 solver is installed in your o
7171

7272
If not, run: `brew install z3` or `apt-get install z3`, with a minimum version of 4.10 for Z3.
7373

74-
Running rCanary within RAP is very simple, just enter the sysroot (root directory) of a Cargo program and run:
74+
Running rCanary within RAPx is very simple, just enter the sysroot (root directory) of a Cargo program and run:
7575
```shell
76-
cargo rap -mleak
76+
cargo rapx -mleak
7777
```
7878

7979
> Note: Analysis will be terminated if the directory or toolchain version is not `nightly-2024-06-30`.
@@ -106,7 +106,7 @@ fn main() {
106106
}
107107
```
108108

109-
Running `cargo rap -mleak`:
109+
Running `cargo rapx -mleak`:
110110
```rust
111111
11-3:20:49:9 |FRONT| |WARN | [RAP] RCanary: Leak Function: Unsat DefId(0:3 ~ t[6d38]::main) src/main.rs:2:1: 8:2 (#0)
112112
11-3:20:49:9 |FRONT| |WARN | [RAP] RCanary: LeakItem Candidates: _2 = std::boxed::Box::<&str>::into_raw(move _3) -> [return: bb2, unwind: bb3], src/main.rs:5:15: 5:33 (#0)
@@ -262,4 +262,4 @@ bb 3 {
262262
CleanUp: true
263263
resume @ UnwindResume
264264
}
265-
```
265+
```

0 commit comments

Comments
 (0)