brexhq / substation

Substation is a toolkit for routing, normalizing, and enriching security event and audit logs.
https://substation.readme.io
MIT License
330 stars 21 forks source link

fix(internal/bufio): Default Max Token Size #220

Closed jshlbrd closed 3 months ago

jshlbrd commented 3 months ago

Description

Motivation and Context

Noticed that this was wrong when working on another PR. These are not equivalent: https://go.dev/play/p/rGQz8_p5zR3. This doesn't affect deployments in AWS Lambda.

How Has This Been Tested?

Try to read a file with very large lines using any file reader app -- it should fail using the main branch but succeed with this change.

Types of changes

Checklist: