-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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_buffer_alloc.c corner cases and fixes #639
Labels
Comments
ARM Internal Ref: IOTSSL-1033 |
if ( len > (size_t)-4 ) should be if ( len > (size_t)-MBEDTLS_MEMORY_ALIGN_MULTIPLE ) |
This was referenced Jul 12, 2017
Hi Guido, I believe that this issue has been fixed by the patches introduced by #778, which will be included in the next release, therefore I am closing this issue. Please let us know if there are more problems in |
Patater
pushed a commit
that referenced
this issue
Sep 6, 2019
Merge mbedtls-2.16 into mbedtls-2.16-restricted
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is
memory_buffer_alloc.c
(simplified, with all ifdefs removed) and some corner cases I identified and proposed fixes for them. This can be readily compiled and run (containsmain
). I think the code + comments speak for themselves.The text was updated successfully, but these errors were encountered: