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