Speykious / cve-rs

Blazingly 🔥 fast 🚀 memory vulnerabilities, written in 100% safe Rust. 🦀
Other
3.72k stars 94 forks source link

Port to Java #29

Open Codetoil opened 4 months ago

Codetoil commented 4 months ago

Reason: image

Speykious commented 4 months ago

oh no

Codetoil commented 4 months ago

Second Reason: I am a Java Programmer.

5GameMaker commented 2 months ago
@NotNull String hi = null;
TudbuT commented 2 months ago

import sun.misc.Unsafe;

Codestech1 commented 2 months ago

Simply put

while (true) System.gc();

into your code.

TudbuT commented 2 months ago

Simply put

while (true) System.gc();

into your code.

the funny thing is this is actually safe, but still worse than doing something unsafe because it will keep pausing the jvm on all threads indefinitely, meaning it will do nothing else in any thread ever again