-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Fix use after free in SD library #10122
Conversation
👋 Hello Ariakenom, we appreciate your contribution to this project! Click to see more instructions ...
Review and merge process you can expect ...
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good :), will test before marking as Pending merge.
Memory usage test (comparing PR against master branch)The table below shows the summary of memory usage change (decrease - increase) in bytes and percentage for each target.
Click to expand the detailed deltas report [usage change in BYTES]
|
Test Results 56 files - 83 56 suites - 83 5m 15s ⏱️ - 1h 37m 54s Results for commit 60e9415. ± Comparison against base commit 70786dc. This pull request removes 9 tests.
♻️ This comment has been updated with latest results. |
Very Much grateful for this fix. Can confirm working on WT32-ETH01. Arduino as component of ESP-IDF Ver4.4.7 on VScode. |
Description of Change
The destructor of
AcquireSPI
usescard
aftercard
has been freed.The issue causes constant crashes for me.
(Sidenote:
s_cards[pdrv]
is accessed beforepdrv
is checked to be valid throughout the file)Tests scenarios
Tested on a ESP32-S3 via platformio framework "espidf, arduino".
Related links
Introduced in b6ca5a8