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

Prevent enumerating entire non-ISO formatted syslog files in is_iso_fmt #972

Merged
merged 10 commits into from
Jan 30, 2025

Conversation

JSCU-CNI
Copy link
Contributor

This PR prevents is_iso_fmt from enumerating entire non-ISO formatted auth or syslogs.

@Horofic Horofic requested a review from Poeloe December 11, 2024 08:43
Copy link
Member

@Schamper Schamper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also add a unit test for this specific edge case

dissect/target/plugins/os/unix/log/helpers.py Outdated Show resolved Hide resolved
JSCU-CNI and others added 2 commits December 17, 2024 16:05
Co-authored-by: Erik Schamper <1254028+Schamper@users.noreply.github.com>
@JSCU-CNI
Copy link
Contributor Author

Can you also add a unit test for this specific edge case

Added in 5f5acea.

@JSCU-CNI JSCU-CNI requested a review from Schamper January 8, 2025 13:52
@Schamper Schamper requested a review from Poeloe January 8, 2025 15:37
Copy link

codecov bot commented Jan 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.85%. Comparing base (385512c) to head (13c8ac2).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #972      +/-   ##
==========================================
+ Coverage   77.77%   77.85%   +0.07%     
==========================================
  Files         327      327              
  Lines       28659    28658       -1     
==========================================
+ Hits        22290    22311      +21     
+ Misses       6369     6347      -22     
Flag Coverage Δ
unittests 77.85% <100.00%> (+0.07%) ⬆️

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.

@JSCU-CNI
Copy link
Contributor Author

Could this PR be merged in main?

@Schamper
Copy link
Member

@Poeloe

@Schamper Schamper merged commit 7869285 into fox-it:main Jan 30, 2025
18 of 20 checks passed
@JSCU-CNI JSCU-CNI deleted the fix/unix-log-iso-fmt-check branch January 30, 2025 12:16
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.

3 participants