mirror of
https://github.com/containerd/containerd.git
synced 2026-11-06 21:37:23 +00:00
Before this PR, if a stdin/stdout/stderr stream is nil,
and the corresponding FIFO is not an empty string,
a panic will occur when Read/Write of the nil stream is invoked in io.CopyBuffer.
Signed-off-by: Hsing-Yu (David) Chen <davidhsingyuchen@gmail.com>
(cherry picked from commit 687a5f51a8)
Signed-off-by: Hsing-Yu (David) Chen <davidhsingyuchen@gmail.com>