mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-08-12 20:11:32 +02:00
limit extLen to MAX_RECORD_SIZE
This commit is contained in:
@@ -15038,6 +15038,9 @@ static int ech_find_extension(byte* buf, word16* idx_p, word16 extType)
|
||||
if (seekRet < 0) {
|
||||
return seekRet;
|
||||
}
|
||||
if (extLen > MAX_RECORD_SIZE) {
|
||||
return BAD_FUNC_ARG;
|
||||
}
|
||||
idx = extIdx = ((word16)seekRet + *idx_p);
|
||||
|
||||
while (idx - extIdx < extLen) {
|
||||
|
||||
Reference in New Issue
Block a user