Skip to content

[Backtracing] Fix bug in Compact Image Map decoder. #79394

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

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

al45tair
Copy link
Contributor

The expand opcode was being decoded incorrectly in the case where we were trying to expand prefixes with codes of 64 or above.

rdar://144497804

The `expand` opcode was being decoded incorrectly in the case where we
were trying to expand prefixes with codes of 64 or above.

rdar://144497804
@al45tair al45tair requested a review from mikeash as a code owner February 14, 2025 15:01
@al45tair
Copy link
Contributor Author

@swift-ci Please smoke test

@al45tair al45tair enabled auto-merge February 14, 2025 15:02
Copy link
Contributor

@mikeash mikeash left a comment

Choose a reason for hiding this comment

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

Is there a test that checks this?

@al45tair
Copy link
Contributor Author

Is there a test that checks this?

Sort of. There isn't a comprehensive suite of tests for the encoder/decoder; I would have liked to, but that would take more time than I have available right now. In lieu of that, what there is a test that captures the image map on the test system, compresses it, then decompresses it and checks that it matches. That's what picked this problem up, but it's obviously somewhat dependent on everyone running the test with their machines in different states.

I have manually tested the fix with the data from the bug report we got.

@al45tair al45tair merged commit 72230da into swiftlang:main Feb 14, 2025
3 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.

2 participants