Commit 02d8449
committed
fix 1. Stack array case (WOLFSSL_SMALL_STACK not defined): buffer is byte buffer[WC_MAX_DIGEST_SIZE] - always valid, never NULL
2. Heap case (WOLFSSL_SMALL_STACK defined): If XMALLOC fails, WC_ALLOC_VAR_EX returns MEMORY_E immediately, so we never reach ForceZero with a NULL pointer1 parent 0880f9e commit 02d8449
1 file changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
300 | | - | |
301 | | - | |
| 299 | + | |
302 | 300 | | |
303 | 301 | | |
304 | 302 | | |
| |||
0 commit comments