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 out-of-memory crashes using line length limits #2902

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

einfachIrgendwer0815
Copy link
Contributor

Fixes #636 with the solution proposed in this comment.

The limit at which reading continues but content gets discarded is now called "soft limit". Respectively, the limit at which bat will abort is now called "hard limit".

The default values for the soft and hard limits can be overwritten using the --soft-line-limit and --hard-line-limit cli options. --disable-line-limits will disable both limits.

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.

files of infinite length cause bat to crash
1 participant