Skip to content

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