DynamoRIO / DynamoRIO/dynamorio

ASan reports pointer overflow

Open
#7,229 2 comments 0 reactions 0 assignees View on GitHub
Bug-DRCrash Google-Affecting Tool-DrCov
Dominant language
C
Stars
3.2k
Forks
629
Avg merge
2d 15h
Merged PRs (30d)
31

Description

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 an `app_pc` aka `unsigned char *`) to unsigned integer to fix the issue.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.