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 read_sid for empty buffers #65

Merged
merged 3 commits into from
Jan 14, 2025

Conversation

JSCU-CNI
Copy link
Contributor

This PR fixes read_sid when it encounters empty buffers. Currently the function breaks if it is provided an empty buffer. Please let us know if the desired behaviour is to throw an exception or log message instead.

dissect/util/sid.py Outdated Show resolved Hide resolved
Co-authored-by: Erik Schamper <[email protected]>
tests/test_sid.py Outdated Show resolved Hide resolved
Co-authored-by: Erik Schamper <[email protected]>
Copy link

codecov bot commented Jan 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.26%. Comparing base (2a9439e) to head (43ca920).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #65      +/-   ##
==========================================
+ Coverage   86.25%   86.26%   +0.01%     
==========================================
  Files          20       20              
  Lines        1302     1303       +1     
==========================================
+ Hits         1123     1124       +1     
  Misses        179      179              
Flag Coverage Δ
unittests 86.26% <100.00%> (+0.01%) ⬆️

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 166f63e into fox-it:main Jan 14, 2025
20 checks passed
@JSCU-CNI JSCU-CNI deleted the fix/read-sid-empty-buffer branch January 14, 2025 16:09
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