Add sanity for case id'd in optesting review

This commit is contained in:
kaleb-himes
2024-06-17 11:49:41 -04:00
parent e72db4a306
commit f00e5247bb

View File

@@ -10643,6 +10643,11 @@ static WARN_UNUSED_RESULT int roll_auth(
word32 remainder;
int ret;
/* Sanity check on authIn to prevent segfault in xorbuf() where
* variable 'in' is dereferenced as the mask 'm' in misc.c */
if (in == NULL)
return BAD_FUNC_ARG;
/* encode the length in */
if (inSz <= 0xFEFF) {
authLenSz = 2;