We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, Brian.
While doing research on allocators, we have found that ffmalloc has an integer overflow in its allocation.
For example, this code expects to return NULL, but in ffmalloc, due to the integer overflow in this code, it returns a valid address.
int main() { char* p = malloc(-8); printf("%p\n", p); }
$ LD_PRELOAD=$(pwd)/ffmalloc/libffmallocnpst.so ./poc 0x55b08152c000
I think you need to have additional check before aligning the size.
Best, Insu Yun.
The text was updated successfully, but these errors were encountered:
Address issue #1 - integer wrap around in ffmalloc size parameter
a9fa5f8
Thanks Insu. I've added checks to malloc plus the various "aligned" functions.
Sorry, something went wrong.
No branches or pull requests
Hi, Brian.
While doing research on allocators,
we have found that ffmalloc has an integer overflow in its allocation.
For example, this code expects to return NULL,
but in ffmalloc, due to the integer overflow in this code, it returns a valid address.
I think you need to have additional check before aligning the size.
Best,
Insu Yun.
The text was updated successfully, but these errors were encountered: