Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missed null check in docker_image_dest.go #2164

Merged
merged 1 commit into from
Oct 31, 2023
Merged

Conversation

bojidar-bg
Copy link
Contributor

As the documentation says, "It is always OK to pass nil instead of a SystemContext."

I failed to get a suitable minimal reproduction project, but I got a panic on this line while using the library to copy images around once it decided to recompress a few layers, and I have confirmed that applying the change locally (or passing a suitable DestinationCtx to copy.Image) fixes the panic. Still, let me know if an actual reproduction would be necessary to get this merged.

As the documentation says, "It is always OK to pass nil instead of a SystemContext."

Signed-off-by: Bojidar Marinov <[email protected]>
Copy link
Contributor

@flouthoc flouthoc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@mtrmac mtrmac merged commit 646dbde into containers:main Oct 31, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants