cybozu-go / aptutil

Go utilities for Debian APT repositories
MIT License
124 stars 29 forks source link

Introduce a larger maximum buffer size for parser #50

Closed Hsn723 closed 4 years ago

Hsn723 commented 4 years ago

Resolves #49

Our usage of bufio.Scanner relies on the default MaxScanTokenSize, which is 64 KiB and may be exceeded, for instance if we encounter a package with a large enough extended description. As this issue may not be prevalent enough to necessitate surfacing extra configuration knobs to the user, I am proposing the use of a reasonable default value (1 MiB) for the time being.