forked from wolfSSL/wolfssl
Add sanity for case id'd in optesting review
This commit is contained in:
@@ -10643,6 +10643,11 @@ static WARN_UNUSED_RESULT int roll_auth(
|
|||||||
word32 remainder;
|
word32 remainder;
|
||||||
int ret;
|
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 */
|
/* encode the length in */
|
||||||
if (inSz <= 0xFEFF) {
|
if (inSz <= 0xFEFF) {
|
||||||
authLenSz = 2;
|
authLenSz = 2;
|
||||||
|
Reference in New Issue
Block a user