Skip to content

Multiply signed integer instead of left shift#1382

Merged
aquynh merged 1 commit intocapstone-engine:nextfrom
catenacyber:tmsshift
Feb 15, 2019
Merged

Multiply signed integer instead of left shift#1382
aquynh merged 1 commit intocapstone-engine:nextfrom
catenacyber:tmsshift

Conversation

@catenacyber
Copy link
Copy Markdown
Contributor

Found by oss-fuzz
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=12962

Left shift of a signed value is undefined behavior.
Other solution would be casting to a uint32_t

@aquynh aquynh merged commit f2aa843 into capstone-engine:next Feb 15, 2019
@aquynh
Copy link
Copy Markdown
Collaborator

aquynh commented Feb 15, 2019

@fotisl, i will just merge this simple fix.

merged, thanks!

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