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

Enhancement: Add CRC to free blocks header #1

Open
dpretet opened this issue Mar 26, 2023 · 0 comments
Open

Enhancement: Add CRC to free blocks header #1

dpretet opened this issue Mar 26, 2023 · 0 comments

Comments

@dpretet
Copy link
Owner

dpretet commented Mar 26, 2023

A CRC could be computed in a header and stored in size. During a malloc() or a free(), the functions could check the CRC of the current block manipulated as well the linked blocks.

For 32 bits, the 2 LSBs could used to place it while every size is round up to 32 bytes. For 64 bits arch, the MSBs could be use and so propose a stronger hash function.

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

No branches or pull requests

1 participant