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 inital buffer size #129

Merged
merged 1 commit into from
Mar 8, 2022
Merged

fix inital buffer size #129

merged 1 commit into from
Mar 8, 2022

Conversation

florianl
Copy link
Contributor

@florianl florianl commented Mar 8, 2022

The given maxBufferSize can be smaller than the default value size of 4096 that is passed to scanner.Buffer(). This can lead to unintended behaviour.
So this PR is proposing to use the minimum value of both.

The given `maxBufferSize` can be smaller than the default value size of 4096 that is passed to `scanner.Buffer()`. This can lead to unintended behaviour.
So this PR is proposing to use the minimum value of both.
@purehyperbole
Copy link
Member

Hey @florianl ,

Thanks again for submitting a fix. I will merge and release this now

@purehyperbole purehyperbole merged commit 9a15ccd into r3labs:master Mar 8, 2022
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