Skip to content

fix: [#458] restrict buffer to read beginning of file #459

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

Merged
merged 1 commit into from
May 31, 2025

Conversation

jardon
Copy link
Member

@jardon jardon commented May 31, 2025

i rewrote this to only scan the first 3 lines. this fixes the issues, but its still possible to hit a bin that has a line that exceeds the limit. its unlikely, but if we want to be extra sure this doesnt pop back up again, i can use bufio.Reader which doesnt have a token limit

closes #458

@jardon jardon requested a review from taukakao May 31, 2025 13:58
@jardon jardon force-pushed the fix/distrobox-bin-reader branch from 75fa229 to f5a98f0 Compare May 31, 2025 19:51
@jardon jardon merged commit c5608ee into main May 31, 2025
4 checks passed
@jardon jardon deleted the fix/distrobox-bin-reader branch May 31, 2025 20:04
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.

rework verification of distrobox scripts
2 participants