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 crash on x86 when building with MSVC #2253

Merged
merged 1 commit into from
Jan 20, 2024

Conversation

oleavr
Copy link
Contributor

@oleavr oleavr commented Jan 18, 2024

There is an MSVC compiler bug (still as of 19.36.32535): given switch (x), where x is 64 bits wide, the compiler generates code that computes an incorrect jump table index. E.g. if x is zero, it ends up reading the table entry at index -1.

There is a compiler bug in latest MSVC, which at the time of writing is
19.36.32535: given `switch (x)`, where `x` is 64 bits wide, the compiler
generates code that computes an incorrect jump table index. E.g. if
`x` is zero, it ends up reading the table entry at index -1.
Rot127 added a commit to Rot127/llvm-capstone that referenced this pull request Jan 19, 2024
@XVilka
Copy link
Contributor

XVilka commented Jan 19, 2024

The labeler CI job should be either restarted or ignored

@kabeor kabeor merged commit 28d0b20 into capstone-engine:next Jan 20, 2024
12 checks passed
Rot127 added a commit to capstone-engine/llvm-capstone that referenced this pull request Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants