mirror of
https://github.com/containerd/containerd.git
synced 2026-08-10 17:14:49 +00:00
Shim start output was trimmed before protobuf decoding. Because arbitrary protobuf fields may legitimately end with whitespace bytes, including `\n`, trimming could corrupt metadata or capabilities and cause decoding to fail. Pass the raw command output to `parseStartResponse` and attempt protobuf decoding before modifying the response. Whitespace trimming now applies only to legacy JSON and plain-address responses. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>