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

backport 2.28 - Fix usage of ASSERT_ALLOC() #6420

Merged
merged 1 commit into from
Oct 17, 2022

Conversation

mpg
Copy link
Contributor

@mpg mpg commented Oct 14, 2022

This is the 2.28 backport of #6419

The second argument is the number of elements of the type the first
argument is pointing to, so we shouldn't be using sizeof there.

This was resulting in overly large allocations.

Signed-off-by: Manuel Pégourié-Gonnard <[email protected]>
@mpg mpg added bug needs-review Every commit must be reviewed by at least two team members, needs-reviewer This PR needs someone to pick it up for review size-s Estimated task size: small (~2d) labels Oct 14, 2022
@mpg mpg self-assigned this Oct 14, 2022
@paul-elliott-arm paul-elliott-arm removed the needs-reviewer This PR needs someone to pick it up for review label Oct 14, 2022
Copy link
Contributor

@tom-daubney-arm tom-daubney-arm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tom-daubney-arm tom-daubney-arm removed the needs-review Every commit must be reviewed by at least two team members, label Oct 14, 2022
@paul-elliott-arm paul-elliott-arm added the approved Design and code approved - may be waiting for CI or backports label Oct 14, 2022
@mpg mpg merged commit e5ae132 into Mbed-TLS:mbedtls-2.28 Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Design and code approved - may be waiting for CI or backports bug size-s Estimated task size: small (~2d)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants