Skip to content

Fix DRBG_internal alloc in wc_RNG_HealthTestLocal#9847

Merged
douzzer merged 1 commit intowolfSSL:masterfrom
embhorn:gh9846
Mar 3, 2026
Merged

Fix DRBG_internal alloc in wc_RNG_HealthTestLocal#9847
douzzer merged 1 commit intowolfSSL:masterfrom
embhorn:gh9846

Conversation

@embhorn
Copy link
Member

@embhorn embhorn commented Mar 2, 2026

Description

Fix allocation of DRBG_internal to 1 element of DRBG_internal

Fixes #9846

Testing

Confirmed visually

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@embhorn embhorn self-assigned this Mar 2, 2026
Copilot AI review requested due to automatic review settings March 2, 2026 17:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes an incorrect allocation size for DRBG_internal in wc_RNG_HealthTestLocal by allocating a single DRBG_internal element instead of treating sizeof(DRBG_internal) as an element count.

Changes:

  • Update WC_ALLOC_VAR_EX usage to allocate 1 element of DRBG_internal (instead of sizeof(DRBG_internal) elements).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@embhorn
Copy link
Member Author

embhorn commented Mar 2, 2026

Jenkins retest this please

Build [wolfSSL » PRB-140-3-tests #8676](https://cloud.wolfssl-test.com/jenkins/job/wolfSSL/job/PRB-140-3-tests/8676/) completed: SUCCESS
[Pipeline] }
ERROR: No build record wolfSSL/PRB-140-3-tests#8676 could be located.
Setting overall build result to FAILURE

@embhorn embhorn assigned wolfSSL-Bot and unassigned embhorn Mar 2, 2026
@douzzer douzzer merged commit 350706d into wolfSSL:master Mar 3, 2026
595 of 596 checks passed
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.

[Bug]: Seemingly invalid WC_ALLOC_VAR_EX invocation

4 participants