Merge pull request #2231 from JacobBarthelmeh/Fuzzer

sanity check on buffer size
This commit is contained in:
toddouska
2019-05-10 16:46:38 -07:00
committed by GitHub

View File

@@ -10136,6 +10136,11 @@ int TLSX_ParseVersion(WOLFSSL* ssl, byte* input, word16 length, byte msgType,
word16 type;
word16 size;
if (offset + (2 * OPAQUE16_LEN) > length) {
ret = BUFFER_ERROR;
break;
}
ato16(input + offset, &type);
offset += HELLO_EXT_TYPE_SZ;