Skip to content

Allocate the right amount of memory for auth_policy#3547

Merged
AndreasFuchsTPM merged 1 commit into
masterfrom
autofix-58
Mar 4, 2026
Merged

Allocate the right amount of memory for auth_policy#3547
AndreasFuchsTPM merged 1 commit into
masterfrom
autofix-58

Conversation

@AndreasFuchsTPM
Copy link
Copy Markdown
Member

@AndreasFuchsTPM AndreasFuchsTPM commented Feb 10, 2026

No description provided.

@AndreasFuchsTPM AndreasFuchsTPM changed the title Potential fix for code scanning alert no. 58: Not enough memory allocated for array of pointer type Allocate the right amount of memory for auth_policy Feb 10, 2026
For some reason we did a malloc(UINT16_MAX+...) which is way to much for a policy.

Signed-off-by: Andreas Fuchs <andreas.fuchs@infineon.com>

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@AndreasFuchsTPM AndreasFuchsTPM marked this pull request as ready for review March 4, 2026 10:55
@AndreasFuchsTPM AndreasFuchsTPM merged commit d15fc36 into master Mar 4, 2026
41 checks passed
@AndreasFuchsTPM AndreasFuchsTPM deleted the autofix-58 branch March 4, 2026 10:56
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

Successfully merging this pull request may close these issues.

2 participants