We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4447f0c + 0bb094e commit 888081bCopy full SHA for 888081b
1 file changed
src/internal.c
@@ -22397,6 +22397,11 @@ static int removeMsgInnerPadding(WOLFSSL* ssl)
22397
22398
/* Get the real content type from the end of the data. */
22399
ssl->curRL.type = ssl->buffers.inputBuffer.buffer[i];
22400
+ if (ssl->curRL.type == 0) {
22401
+ SendAlert(ssl, alert_fatal, unexpected_message);
22402
+ WOLFSSL_ERROR(PARSE_ERROR);
22403
+ return PARSE_ERROR;
22404
+ }
22405
/* consider both contentType byte and MAC as padding */
22406
ssl->keys.padSz = ssl->buffers.inputBuffer.idx
22407
+ ssl->curSize - i;
0 commit comments