7c1b0ed5355fa69d56ac97faf44d3086a54e60fb
When building a manifest during a push operation, all layers must have an associated descriptor. If a layer is missing a descriptor, that leads to a panic. A break inside a switch in layerAlreadyExists meant to break from the loop surrounding the switch, but instead breaks from the switch. This causes the loop to continue, and can overwrite the descriptor with an empty one, leading to the panic. Also, fix layerAlreadyExists not to abort the push when a speculative stat on a candidate layer digest fails with an error. This could happen in situations like a potential cross-repository mount where the user does not have permission to access the source repository. Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com> Upstream-commit: e0702e9f373f5086f53de2485262dde9fc1e7ac2 Component: engine
Description
No description provided
Languages
Go
92%
Shell
5.5%
Dockerfile
1.1%
Go-Checksums
0.9%
Makefile
0.3%
Other
0.2%