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

Improve Invalid Base Address check #1

Open
ravi688 opened this issue Nov 5, 2021 · 0 comments
Open

Improve Invalid Base Address check #1

ravi688 opened this issue Nov 5, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ravi688
Copy link
Owner

ravi688 commented Nov 5, 2021

u64* values = checked_array(u64, 5, 1, 2, 3, 4, 5);
for(int i = 0; i < 4; i++)
{
	printf("Value[%u]: %u\n", i, checked_ref(u64, values + 1, i));
}

(values + 1) is still a valid base address, however, it is not registered in the internal allocation list.

@ravi688 ravi688 added the enhancement New feature or request label Nov 5, 2021
@ravi688 ravi688 self-assigned this Nov 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant