Skip to content

Fix rare panic inside iced-x86#697

Merged
jaybosamiya-ms merged 1 commit intomainfrom
jayb/rare-rewriter-failure-fix
Mar 2, 2026
Merged

Fix rare panic inside iced-x86#697
jaybosamiya-ms merged 1 commit intomainfrom
jayb/rare-rewriter-failure-fix

Conversation

@jaybosamiya-ms
Copy link
Member

A rare panic occurs inside iced-x86 (example) due to an integer underflow when the bytes that are being decoded are near a 4GiB boundary. There is already a fix available+merged upstream (icedland/iced#697) but a new version has not been released for iced-x86 onto crates.io in ~2 years (see icedland/iced#762 for issue requesting a new release semi-recently).

This PR fixes this by simply making sure we are not passing iced-x86 a 4GiB-boundary-crossing bytes.

@jaybosamiya-ms
Copy link
Member Author

We plan to potentially remove iced-x86 from our dependencies, esp since we might want future ARM support, but at least this PR should fix some of the rare CI failures we see from time to time.

@jaybosamiya-ms jaybosamiya-ms marked this pull request as ready for review March 2, 2026 23:18
@jaybosamiya-ms jaybosamiya-ms marked this pull request as draft March 2, 2026 23:18
@jaybosamiya-ms jaybosamiya-ms force-pushed the jayb/rare-rewriter-failure-fix branch from df6c2f2 to e0f78f1 Compare March 2, 2026 23:20
@github-actions
Copy link

github-actions bot commented Mar 2, 2026

🤖 SemverChecks 🤖 No breaking API changes detected

Note: this does not mean API is unchanged, or even that there are no breaking changes; simply, none of the detections triggered.

@jaybosamiya-ms jaybosamiya-ms marked this pull request as ready for review March 2, 2026 23:30
@jaybosamiya-ms jaybosamiya-ms enabled auto-merge March 2, 2026 23:30
@jaybosamiya-ms jaybosamiya-ms requested a review from wdcui March 2, 2026 23:30
Copy link
Member

@wdcui wdcui 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!

@jaybosamiya-ms jaybosamiya-ms added this pull request to the merge queue Mar 2, 2026
Merged via the queue into main with commit c907dc7 Mar 2, 2026
14 checks passed
@jaybosamiya-ms jaybosamiya-ms deleted the jayb/rare-rewriter-failure-fix branch March 2, 2026 23:43
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