turncate hashSigAlgoSz to max buffer size
This commit is contained in:
parent
09aeda2162
commit
52c2c126c1
@ -12980,6 +12980,9 @@ int DoSessionTicket(CYASSL* ssl,
|
|||||||
XMEMCPY(clSuites.hashSigAlgo, &input[i],
|
XMEMCPY(clSuites.hashSigAlgo, &input[i],
|
||||||
min(clSuites.hashSigAlgoSz, HELLO_EXT_SIGALGO_MAX));
|
min(clSuites.hashSigAlgoSz, HELLO_EXT_SIGALGO_MAX));
|
||||||
i += clSuites.hashSigAlgoSz;
|
i += clSuites.hashSigAlgoSz;
|
||||||
|
|
||||||
|
if (clSuites.hashSigAlgoSz > HELLO_EXT_SIGALGO_MAX)
|
||||||
|
clSuites.hashSigAlgoSz = HELLO_EXT_SIGALGO_MAX;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
i += extSz;
|
i += extSz;
|
||||||
|
Loading…
Reference in New Issue
Block a user