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

uintptr_t does not maintain provenance information #19

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

josephproject1
Copy link

You might use uintptr_t for pointer arithmetic in a standard C program, however, this might not maintain provenance information, making it prone to certain risks.

A pointer address is stored as uintptr_t and perform an arithmetic operation that exceeds the bounds of the array. There is no runtime checks to prevent accessing invalid memory, and can lead to undefined behaviors or vulnerabilities

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.

1 participant