-
Notifications
You must be signed in to change notification settings - Fork 34
Add test for failing dynamic allocation #810
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
Conversation
f08f166 to
5b8519f
Compare
fc2ddb2 to
8e132e0
Compare
mkannwischer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @hanno-becker. Could you reduce the diff to mlkem-native to make maintenance easier down the line.
8e132e0 to
a9bc1c0
Compare
a9bc1c0 to
e12d69e
Compare
mkannwischer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @hanno-becker for also adding it to the CI. One more nit, then this is good to merge.
Tests that the toplevel API correctly handles allocation failures by: - Returning MLD_ERR_OUT_OF_MEMORY on allocation failure - Cleaning up all allocated memory (no leaks) - Freeing in LIFO order (enabling bump allocator use) Uses custom bump allocator with LIFO tracking to systematically inject failures at each allocation point and verify error handling. Signed-off-by: Hanno Becker <[email protected]>
e12d69e to
0680d22
Compare
0680d22 to
a2d900d
Compare
Signed-off-by: Hanno Becker <[email protected]>
a2d900d to
888efaf
Compare
mkannwischer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @hanno-becker!
Uh oh!
There was an error while loading. Please reload this page.