Skip to content

Commit df17913

Browse files
sanity check on arguments passed in
1 parent 45534b0 commit df17913

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/internal.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3406,6 +3406,10 @@ static int GetNameListRaw(byte* idList, word32* idListSz,
34063406
word32 nameSz = 0, nameListIdx = 0, idListIdx = 0;
34073407
int ret = WS_SUCCESS;
34083408

3409+
if (idList == NULL || nameList == NULL || idListSz == NULL) {
3410+
return WS_BAD_ARGUMENT;
3411+
}
3412+
34093413
/*
34103414
* The strings we want are now in the bounds of the message, and the
34113415
* length of the list. Find the commas, or end of list, and then decode

0 commit comments

Comments
 (0)