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
I think this code might have an Unsound problem, but I'm not sure because it doesn't seem to work in my current environment, so I'll just try to simulate it.
This can be exploited by constructing a DmaArray instance with logical inconsistencies between its pointer (ptr), length (length), and the actual memory it points to.
Obtain its raw pointer using vec.as_mut_ptr() and wrap it in NonNull.
Construct a DmaArray instance with length > 0, even though the actual Vec capacity is 0.
Invoke the write method, which accesses memory beyond the allocated bounds.
Sorry, my current environment doesn't seem to be able to run this project, so I can only simulate it in this way and delete some content. For security reasons, I raised this issue, please don't mind if this is a false positive.
The text was updated successfully, but these errors were encountered:
Hello, Thank you for your contribution to the project. I noticed the following code:
I think this code might have an Unsound problem, but I'm not sure because it doesn't seem to work in my current environment, so I'll just try to simulate it.
This can be exploited by constructing a DmaArray instance with logical inconsistencies between its pointer (ptr), length (length), and the actual memory it points to.
Here is my PoC:
Steps to Reproduce
Sorry, my current environment doesn't seem to be able to run this project, so I can only simulate it in this way and delete some content. For security reasons, I raised this issue, please don't mind if this is a false positive.
The text was updated successfully, but these errors were encountered: