Merge pull request #10868 from SparkiDev/tsp_staticmem_fix

Time-Stamping Protocol testing: fix CI loop static-memory
This commit is contained in:
David Garske
2026-07-08 20:26:39 -07:00
committed by GitHub
2 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ jobs:
"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",
+7 -2
View File
@@ -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;
@@ -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);