Skip to content

Commit b1c7521

Browse files
committed
rust, 智能指针转裸指针故意不回收, 无限循环, 直接跟他爆了!
1 parent 459c539 commit b1c7521

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

DrEden33773/README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Introduction
44

5-
An extremely short executable rust implementation to f**k the memory up.
5+
An extremely short executable rust implementation to f\*\*k the memory up.
66

77
## Code
88

@@ -15,5 +15,4 @@ fn main(){loop{Box::leak(0.into());}}
1515
1. `0.into()` simply generates a unique pointer with a clean ownership
1616
2. `Box::leak()` simply forgets the input unique pointer's ownership, turning it into a raw pointer
1717
3. Each time you leak a unique pointer, you don't give a try to free/drop it's load on heap memory
18-
4. `loop{}` means this program will continue to be executed until all of the memory have been f**ked up
19-
18+
4. `loop{}` means this program will continue to be executed until all of the memory have been f\*\*ked up

0 commit comments

Comments
 (0)