-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Quote various strings coming from untrusted sources #2408
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Typically, use %q instead of %s (or instead of "%s"), to expose various control characters and the like without interpreting them. This is not really comprehensive; the codebase makes no _general_ guarantee that any returned string values are free of control characters or other malicious/misleading metadata. Not even in returned "error" values (which can legitimately contain newlines, if nothing else). Signed-off-by: Miloslav Trmač <mitr@redhat.com>
mtrmac
added a commit
to mtrmac/skopeo
that referenced
this pull request
May 9, 2024
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
See containers/skopeo#2325 for updated Skopeo tests. |
mtrmac
added a commit
to mtrmac/skopeo
that referenced
this pull request
May 13, 2024
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
cgwalters
approved these changes
May 13, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I glanced through this and the changes I saw looked good, but I made no attempt to check or look for places that weren't changed.
LGTM |
Skopeo tests need to be updated. |
There is a link to an updated version above. |
mtrmac
added a commit
to mtrmac/skopeo
that referenced
this pull request
May 13, 2024
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
mtrmac
added a commit
to containers/skopeo
that referenced
this pull request
May 13, 2024
Update tests for containers/image#2408
TechIsCool
pushed a commit
to TechIsCool/skopeo
that referenced
this pull request
May 15, 2024
Signed-off-by: Miloslav Trmač <mitr@redhat.com> Signed-off-by: David Beck <david.beck@invitae.com>
mtrmac
added a commit
to mtrmac/common
that referenced
this pull request
May 22, 2024
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
TomSweeneyRedHat
added a commit
to TomSweeneyRedHat/common
that referenced
this pull request
May 22, 2024
Update the libimage/pull_test.go file, changing quote in one line Based on containers/image#2408 from @mtrmac Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
Luap99
added a commit
to grisu48/podman
that referenced
this pull request
May 23, 2024
The new c/image version is returning a slightly new error message[1] so make tests use the new one. [1] containers/image#2408 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
TomSweeneyRedHat
pushed a commit
to TomSweeneyRedHat/podman
that referenced
this pull request
May 29, 2024
The new c/image version is returning a slightly new error message[1] so make tests use the new one. [1] containers/image#2408 Signed-off-by: Paul Holzinger <pholzing@redhat.com> Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Typically, use
%q
instead of%s
(or instead of"%s"
), to expose various control characters and the like without interpreting them.This is not really comprehensive; the codebase makes no general guarantee that any returned string values are free of control characters or other malicious/misleading metadata. Not even in returned "error" values (which can legitimately contain newlines, if nothing else).
A side effect of the code audit required by CVE-2024-3727 .