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

Memory Leaks while handling Realloc Calls #5

Open
hashimSharif opened this issue Sep 15, 2021 · 1 comment
Open

Memory Leaks while handling Realloc Calls #5

hashimSharif opened this issue Sep 15, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@hashimSharif
Copy link
Collaborator

No description provided.

@hashimSharif hashimSharif added the enhancement New feature or request label Sep 15, 2021
@hashimSharif
Copy link
Collaborator Author

The shadow memory design in BBOps.cc should be reconsidered. Currently, shadow memory is allocated as a contiguous byte array with each new memory allocation requesting memory at the end of the array. On realloc instructions, a new (larger) memory is allocated at the rear of the array while the old allocation cannot be freed.

Future Work: Consider implementing shadow memory as an array/map of pointers to memory allocations.

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