mirror of
https://github.com/docker/cli.git
synced 2026-08-28 02:24:15 -05:00
c539968eac7349e363299f891c86c64d3f9b52de
client.checkResponseErr() was hanging and consuming infinite memory when the serverResp.Body io.Reader returns infinite stream. This commit prohibits reading more than 1MiB. Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp> (cherry picked from commit 1db4be0c32267b7a8a27998089ce96440bed492e) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 49556e047059d81b64f6cd12f4c602c9a9c471c7 Component: engine
Languages
Go
92.3%
Shell
5.4%
Dockerfile
1.1%
Go-Checksums
0.7%
Makefile
0.3%
Other
0.2%