From a76e80f03e23f06a1a868481a7a448143b0b9131 Mon Sep 17 00:00:00 2001 From: Ruby Martin Date: Mon, 14 Jul 2025 10:47:51 -0600 Subject: [PATCH] AlgoListSz returns 0 if algoList is NULL --- src/internal.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/internal.c b/src/internal.c index 080ded6f..7fcc07f0 100644 --- a/src/internal.c +++ b/src/internal.c @@ -3988,6 +3988,9 @@ static word32 AlgoListSz(const char* algoList) { word32 algoListSz; + if (algoList == NULL) + return 0; + algoListSz = (word32)WSTRLEN(algoList); if (algoList[algoListSz-1] == ',') { --algoListSz;