-
Notifications
You must be signed in to change notification settings - Fork 572
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
ASan reports pointer overflow #7229
Comments
Detected reports:
|
edeiana
pushed a commit
that referenced
this issue
Jan 28, 2025
vitalybuka
added a commit
to vitalybuka/dynamorio
that referenced
this issue
Jan 30, 2025
Adding to NULL is undefined behavior. Examples of reports are in DynamoRIO#7229. Many others are likely still undiscovered. Issue: DynamoRIO#7229
More reports
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Address Sanitizer reports pointer overflow when performing pointer arithmetic with
final_pc
.This happens when
final_pc
is NULL, as adding to it is undefined behavior.We cast
final_pc
(which is anapp_pc
akaunsigned char *
) to unsigned integer to fix the issue.The text was updated successfully, but these errors were encountered: