Skip to content

Fix UB in EmulateInstructionARM64.cpp #1305

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
Jun 3, 2020

Conversation

adrian-prantl
Copy link

This fixes an unhandled signed integer overflow in AddWithCarry() by
using the llvm::checkedAdd() function. Thats to Vedant Kumar for the
suggestion!

rdar://problem/60926115

Differential Revision: https://reviews.llvm.org/D80955

(cherry picked from commit a0b674f)

This fixes an unhandled signed integer overflow in AddWithCarry() by
using the llvm::checkedAdd() function. Thats to Vedant Kumar for the
suggestion!

<rdar://problem/60926115>

Differential Revision: https://reviews.llvm.org/D80955

(cherry picked from commit a0b674f)
@adrian-prantl adrian-prantl requested a review from fredriss June 3, 2020 00:36
@fredriss fredriss merged commit 3b11cbd into swiftlang:apple/stable/20200108 Jun 3, 2020
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