r0bre

Results 8 issues of r0bre

https://semgrep.dev/s/d0Rn Trying to match the impl function "area" with a ref var `&self`: ### Code: ```rust #[derive(Debug)] struct Rectangle { width: u32, height: u32, } impl Rectangle { fn area(&self)...

bug
lang:rust
alpha

https://semgrep.dev/s/v29W (remove the "?" at the beginning of the pattern - semgrep.dev only allows filing bugs when no match is found) Trying to match the first line of the following...

bug
lang:rust
alpha

https://semgrep.dev/s/Dw1v

bug
lang:rust
alpha
parsing-pattern

https://lkmidas.github.io/posts/20221128-n1ctf2022-writeups/

https://semgrep.dev/s/WOBo

bug
lang:rust
alpha
parsing-pattern

Anchor's account `reload` function, which is supposed to be called after CPI, just takes the accounts new data and puts them into the deserialized structure. When doing so, it does...

enhancement