-
-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[asan] SEGV when you forget to close a File #5
Comments
A possible fix that doesn't rely on destructors running (you cannot rely on that because Here's the repro case using static lifetimes:
With this asan errors with a memory leak, which is OK in safe Rust.
Instead of |
Same comment as for https://github.com/nickray/littlefs2/issues/3:
|
Originally reported in #3. This ticket includes an example that can be run on x86_64 and instrumented with LLVM AddressSanitizer.
STR
The text was updated successfully, but these errors were encountered: