You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This unsound implementation of Vec::from_raw_parts would create a dangling pointer issues if the pointer is dropped automatically or is empty. The 'mem::forget' function can be used to avoid the issue.
This would potentially cause undefined behaviors in Rust. If we further manipulate the problematic converted types, it would potentially lead to different consequences such as uaf or double free. I am reporting this issue for your attention.
The text was updated successfully, but these errors were encountered:
Hi, I am scanning the scavenger in the latest version with my own static analyzer tool.
Unsafe conversion found at: src/miner.rs#L141
This unsound implementation of
Vec::from_raw_parts
would create a dangling pointer issues if thepointer
is dropped automatically or is empty. The 'mem::forget' function can be used to avoid the issue.This would potentially cause undefined behaviors in Rust. If we further manipulate the problematic converted types, it would potentially lead to different consequences such as uaf or double free. I am reporting this issue for your attention.
The text was updated successfully, but these errors were encountered: