Skip to content
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 file handle exhaustion for EWF files with many chunks #499

Merged
merged 2 commits into from
Jan 10, 2024
Merged

Conversation

Schamper
Copy link
Member

@Schamper Schamper commented Jan 9, 2024

The EWF implementation in dissect.evidence does LRU, but that requires passing in the Path objects instead of file-like objects. The current code just tries to open all the files at once. Passing the Path objects instead will allow us to properly utilize the internal LRU.

Copy link

codecov bot commented Jan 9, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (dd8ab8a) 74.76% compared to head (0b6d568) 74.76%.

Files Patch % Lines
dissect/target/containers/ewf.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #499   +/-   ##
=======================================
  Coverage   74.76%   74.76%           
=======================================
  Files         269      269           
  Lines       22064    22064           
=======================================
  Hits        16497    16497           
  Misses       5567     5567           
Flag Coverage Δ
unittests 74.76% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Schamper Schamper merged commit 7a9a059 into main Jan 10, 2024
@Schamper Schamper deleted the fix-ewf branch January 10, 2024 16:38
Zawadidone pushed a commit to Zawadidone/dissect.target that referenced this pull request Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants