Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/no-malloc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
name: No Malloc Tests

# START OF COMMON SECTION
Expand Down Expand Up @@ -75,7 +75,7 @@
"CFLAGS=-DWOLFSSL_NO_MALLOC -pedantic -Wdeclaration-after-statement -Wnull-dereference -DTEST_LIBWOLFSSL_SOURCES_INCLUSION_SEQUENCE"],
"check": false,
"run": [["./wolfcrypt/test/testwolfcrypt"]]},
{"name": "tps-staticmemory", "minutes": 0.8,
{"name": "tsp-staticmemory", "minutes": 0.8,
"configure": ["--enable-ecc", "--enable-rsa", "--enable-keygen",
"--enable-ed25519", "--enable-curve25519", "--enable-ed448",
"--enable-curve448", "--enable-mlkem", "--enable-tsp",
Expand Down
9 changes: 7 additions & 2 deletions wolfcrypt/test/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -68706,7 +68706,10 @@ static wc_test_ret_t pkcs7_signed_multi_cert_test(
byte* out = NULL;
byte* content = NULL;
int encSz = 0;
const word32 outSz = FOURK_BUF * 4;
/* Encoded output is ~8.6 KB (4 KB content + three RSA certs); keep the
* buffer within the default WOLFSSL_STATIC_MEMORY largest bucket (16128)
* so it also runs under --enable-staticmemory with WOLFSSL_NO_MALLOC. */
const word32 outSz = FOURK_BUF * 3;
const word32 contentSz = FOURK_BUF; /* larger than the certificate set */
int found1 = 0, found2 = 0, found3 = 0, j;

Expand Down Expand Up @@ -68815,7 +68818,9 @@ static wc_test_ret_t pkcs7_signed_multi_cert_malformed_test(
int verifyRet;
word32 p;
word32 setStart = 0;
const word32 outSz = FOURK_BUF * 4;
/* See pkcs7_signed_multi_cert_test: keep within the default static-memory
* largest bucket (16128) so this runs under WOLFSSL_NO_MALLOC too. */
const word32 outSz = FOURK_BUF * 3;
const word32 contentSz = FOURK_BUF; /* pushes the cert set to a high offset */

content = (byte*)XMALLOC(contentSz, HEAP_HINT, DYNAMIC_TYPE_TMP_BUFFER);
Expand Down
Loading