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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

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
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.72%. Comparing base (3df28eb) to head (94107ac).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #972   +/-   ##
=======================================
  Coverage   77.72%   77.72%           
=======================================
  Files         326      326           
  Lines       28575    28579    +4     
=======================================
+ Hits        22210    22214    +4     
  Misses       6365     6365           
Flag Coverage Δ
unittests 77.72% <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.

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