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

Fix JPEG parsing regression #216

Merged
merged 8 commits into from
Dec 7, 2022
Merged

Conversation

nh2
Copy link
Contributor

@nh2 nh2 commented Dec 7, 2022

This should fix the regression from #215 (comment).

I made a couple mistakes there.

I improved the equivalence test (which was not correct), and further confirmed it against the old implementation in my separate branch jpeg-parsing-fixes-2-investigation with commit 054d76b.


I also want to point out (beyond issue #214) that the test suite as it is now is totally insufficient, because it does not catch even the most severe errors like JPEGs not parsing correctly at all. That makes it difficult to contribute performance fixes like #215 with confidence.

nh2 added 3 commits December 7, 2022 03:44
…n value.

Fixes regression reported in
Twinside#215 (comment)

Also fix follow-up error that `parseFrames`, `parseFramesSemiLazy` and `parseToFirstFrameHeader`
incorrectly tried to parse beyond the `JpgEndOfImage`.

Jpg: Fix `parseToFirstFrameHeader`
…s failing.

Also fix the test implementation.
@nh2 nh2 force-pushed the jpeg-parsing-fixes-2 branch from c88dab7 to c6dff55 Compare December 7, 2022 03:55
@Twinside Twinside merged commit 4c4bd93 into Twinside:master Dec 7, 2022
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.

2 participants