Commit 9d0be6ff authored by Kevin Jacobs's avatar Kevin Jacobs

Bug 1618739 - Don't assert fuzzer behavior in SSL_ParseSessionTicket r=jcj

Differential Revision: https://phabricator.services.mozilla.com/D66122

--HG--
extra : moz-landing-system : lando
parent c57341ca
......@@ -1056,8 +1056,11 @@ ssl_ParseSessionTicket(sslSocket *ss, const SECItem *decryptedTicket,
PORT_SetError(SEC_ERROR_LIBRARY_FAILURE);
return SECFailure;
}
#ifndef UNSAFE_FUZZER_MODE
/* A well-behaving server should only write 0 or 1. */
PORT_Assert(temp == PR_TRUE || temp == PR_FALSE);
parsedTicket->extendedMasterSecretUsed = (PRBool)temp;
#endif
parsedTicket->extendedMasterSecretUsed = temp ? PR_TRUE : PR_FALSE;
rv = ssl3_ExtConsumeHandshake(ss, &temp, 4, &buffer, &len);
if (rv != SECSuccess) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment