diff options
author | 2019-01-30 14:20:45 -0800 | |
---|---|---|
committer | 2019-01-30 23:19:23 +0000 | |
commit | 75ec1ec13fc22f06266dbece6f83a12d8d44a503 (patch) | |
tree | e24e6bb07bddf3170bf7a16db3ed1f400298ab45 /ui/status/kati.go | |
parent | 0425aa13ec9893b2cf492f2e6bc3e9258664570f (diff) |
Increase max line length for KatiReader bufio.Scanner
bufio.Scanner defaults to a relatively small max line length of
64kB. Kati output may have long lines, use a max length of 2MB
instead.
Fixes: 123590367
Test: m checkbuild
Change-Id: Ia869c5c2526621244f0065736e0d5fd9a088df06
Diffstat (limited to 'ui/status/kati.go')
-rw-r--r-- | ui/status/kati.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/status/kati.go b/ui/status/kati.go index 7c26d427d..1485c8dd8 100644 --- a/ui/status/kati.go +++ b/ui/status/kati.go @@ -121,6 +121,7 @@ func KatiReader(st ToolStatus, pipe io.ReadCloser) { } scanner := bufio.NewScanner(pipe) + scanner.Buffer(nil, 2*1024*1024) for scanner.Scan() { parser.parseLine(scanner.Text()) } |