mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
ada1b01de1
Before this change, if Decode() couldn't read a log record fully,
the subsequent invocation of Decode() would read the record's non-header part
as a header and cause a huge heap allocation.
This change prevents such a case by having the intermediate buffer in
the decoder struct.
Fixes #42125.
Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
(cherry picked from commit
|
||
---|---|---|
.. | ||
config.go | ||
doc.go | ||
local.go | ||
local_test.go | ||
read.go | ||
read_test.go |