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

image/jpeg: skip consecutive 0xff bytes #41875

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shouldend
Copy link

In all cases where markers are appended after the compressed data, optional 0xFF fill bytes may precede the marker

Fixes #40130

@google-cla
Copy link

google-cla bot commented Oct 9, 2020

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@google-cla google-cla bot added the cla: no Used by googlebot to label PRs as having an invalid CLA. The text of this label should not change. label Oct 9, 2020
@shouldend
Copy link
Author

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.

What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@googlebot I signed it!

@google-cla google-cla bot added cla: yes Used by googlebot to label PRs as having a valid CLA. The text of this label should not change. and removed cla: no Used by googlebot to label PRs as having an invalid CLA. The text of this label should not change. labels Oct 9, 2020
@gopherbot
Copy link

This PR (HEAD: 5b1aea6) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/go/+/260837 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link

Message from Gobot Gobot:

Patch Set 1:

Congratulations on opening your first change. Thank you for your contribution!

Next steps:
A maintainer will review your change and provide feedback. See
https://golang.org/doc/contribute.html#review for more info and tips to get your
patch through code review.

Most changes in the Go project go through a few rounds of revision. This can be
surprising to people new to the project. The careful, iterative review process
is our way of helping mentor contributors and ensuring that their contributions
have a lasting impact.

During May-July and Nov-Jan the Go project is in a code freeze, during which
little code gets reviewed or merged. If a reviewer responds with a comment like
R=go1.11 or adds a tag like "wait-release", it means that this CL will be
reviewed as part of the next development cycle. See https://golang.org/s/release
for more details.


Please don’t reply on this GitHub thread. Visit golang.org/cl/260837.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

Message from Go Bot:

Patch Set 1:

Congratulations on opening your first change. Thank you for your contribution!

Next steps:
A maintainer will review your change and provide feedback. See
https://golang.org/doc/contribute.html#review for more info and tips to get your
patch through code review.

Most changes in the Go project go through a few rounds of revision. This can be
surprising to people new to the project. The careful, iterative review process
is our way of helping mentor contributors and ensuring that their contributions
have a lasting impact.

During May-July and Nov-Jan the Go project is in a code freeze, during which
little code gets reviewed or merged. If a reviewer responds with a comment like
R=go1.11 or adds a tag like "wait-release", it means that this CL will be
reviewed as part of the next development cycle. See https://golang.org/s/release
for more details.


Please don’t reply on this GitHub thread. Visit golang.org/cl/260837.
After addressing review feedback, remember to publish your drafts!

@lastzero
Copy link

15 Oct 2020: A maintainer will review your change and provide feedback.

How long can it take? 👀

@gopherbot
Copy link

Message from Brad Fitzpatrick:

Patch Set 1:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/260837.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

Message from Michael Mayer:

Patch Set 1:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/260837.
After addressing review feedback, remember to publish your drafts!

@jackbrown1993
Copy link

Any update on this?

@heschi heschi closed this Dec 15, 2021
@lastzero
Copy link

Why closed?

@heschi
Copy link
Contributor

heschi commented Dec 15, 2021

Just closing PRs over a year old. I'll reopen, but I'll point out that the original author seems to have become unresponsive.

@heschi heschi reopened this Dec 15, 2021
@jackbrown1993
Copy link

@heschi what are the blockers of this getting reviewed?

@heschi
Copy link
Contributor

heschi commented Dec 15, 2021

Looking at the review thread, the author would need to add test cases to the CL.

@lastzero
Copy link

This is a major bug. See https://twitter.com/lastzero/status/1452959588815413251. Brad asked for test files and I've uploaded them. What else do you need? 👀

Screenshot_20211215_205926

@heschi
Copy link
Contributor

heschi commented Dec 15, 2021

I think you may be misunderstanding the code review process. The PR author needs to add test files, perhaps the one you uploaded, to the change before review can proceed. You are free to start your own PR or CL with tests and get it through the review process.

@lastzero
Copy link

Wouldn't Google have a JPEG expert who can fix a broken implementation in a core programming language? Or be so kind to ask me directly to do this instead of sitting it out and then close the issue? Go's JPEG implementation is broken. I've asked the experts as you can see.

@lastzero
Copy link

Hope Brad can help ✨

@ianlancetaylor
Copy link
Contributor

@lastzero Closing this pull request was a mistake. That mistake has been corrected. Sorry about that.

Go is an open source project. It's likely that Google has a JPEG expert somewhere, but they don't work on the Go standard library. I hope that @shouldend or somebody else will pick up the change and push it forward. It shouldn't be hard. Perhaps you can do it. Thanks.

@fabioleite0
Copy link

Any updates??

@jerbob92
Copy link

It's a bit unclear to me whether this is actually a bug because Go doesn't handle some edge cases or that files like these are technically corrupt. Can anyone enlighten me?

And is there anything I can do to move this forward? I'd be willing to create tests for this.

@magus0219
Copy link

WHY NOT MERGE!!!

@ianlancetaylor
Copy link
Contributor

Go uses Gerritt for code review. See https://go.dev/doc/contribute. Essentially nobody sees comments on a GitHub pull request. Please comment instead on https://go.dev/cl/260837. Thanks.

@jerbob92
Copy link

I also made a new one on Gerrit already that has a more complete fix and test https://go.dev/cl/571236

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Used by googlebot to label PRs as having a valid CLA. The text of this label should not change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

image/jpeg: "bad RST marker" error when decoding
9 participants