Skip to content

archive: validate digests before use#7488

Merged
fuweid merged 1 commit intocontainerd:mainfrom
samuelkarp:archive-dgst-validate
Oct 7, 2022
Merged

archive: validate digests before use#7488
fuweid merged 1 commit intocontainerd:mainfrom
samuelkarp:archive-dgst-validate

Conversation

@samuelkarp
Copy link
Copy Markdown
Member

digest.Algorithm() and digest.Encoded() may panic for invalid digests. Validate prior to calling those methods.

Comment thread images/archive/exporter.go
digest.Algorithm() and digest.Encoded() may panic for invalid digests.
Validate prior to calling those methods.

Signed-off-by: Samuel Karp <[email protected]>
@samuelkarp samuelkarp force-pushed the archive-dgst-validate branch from cd5c41c to f9c9121 Compare October 7, 2022 02:37
@fuweid fuweid merged commit 6fcfcf3 into containerd:main Oct 7, 2022
@samuelkarp samuelkarp deleted the archive-dgst-validate branch October 7, 2022 07:22
@AkihiroSuda AkihiroSuda added cherry-picked/1.6.x PR commits are cherry-picked into release/1.6 branch and removed cherry-pick/1.6.x labels Oct 7, 2022
@AdamKorcz
Copy link
Copy Markdown
Contributor

AdamKorcz commented Oct 8, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-picked/1.6.x PR commits are cherry-picked into release/1.6 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants