-
Notifications
You must be signed in to change notification settings - Fork 671
Fix for OOB read in APFSJObject::add_entry #2802, #2804 #2803
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
base: develop
Are you sure you want to change the base?
Conversation
|
@bcarrier @rcordovano PTAL |
efe9795 to
d0553e5
Compare
d0553e5 to
a97846e
Compare
|
Hi @joachimmetz. I'm testing this on some APFS images. For the 2 I've tested until now, it seems to freeze FS transversal at the very beginning, not sure if it is forever or if it became very slow at some point, I canceled the decoding after some dozens of minutes. |
|
any test image you can share? or test case to reproduce as part of https://github.com/dfirlabs/apfs-specimens? The thing is there are no unit tests for TSK and I use its APFS functionality VERY SPORADIC. |
|
Unfortunately they are real case images... I'm not experienced with C code debugging, but If you could point me some tutorial to get some thread dump/stacktrace at the freezing point, I can try to execute the procedure. |
|
one option is to use
this highly depends on the coding style as well, TSK APFS is C++ heavy with use of templating, so hard to debug (and maintain) |
|
Can you rebase this with the current develop and trigger the self-tests? |
a97846e to
66feafe
Compare
|
rebased with develop branch |
|
@simsong PTAL if/how these changes can provide better error condition feedback to the user |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #2803 +/- ##
========================================
Coverage 31.64% 31.64%
========================================
Files 192 192
Lines 43149 43151 +2
========================================
+ Hits 13653 13655 +2
Misses 29496 29496
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
No description provided.