Skip to content

Commit

Permalink
sanity check on arguments passed in
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobBarthelmeh committed Sep 27, 2024
1 parent 45534b0 commit df17913
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -3406,6 +3406,10 @@ static int GetNameListRaw(byte* idList, word32* idListSz,
word32 nameSz = 0, nameListIdx = 0, idListIdx = 0;
int ret = WS_SUCCESS;

if (idList == NULL || nameList == NULL || idListSz == NULL) {
return WS_BAD_ARGUMENT;
}

/*
* The strings we want are now in the bounds of the message, and the
* length of the list. Find the commas, or end of list, and then decode
Expand Down

0 comments on commit df17913

Please sign in to comment.