limit extLen to MAX_RECORD_SIZE

This commit is contained in:
Ruby Martin
2026-07-21 09:50:17 -06:00
parent 43b273dd68
commit 568bfe4299
+3
View File
@@ -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) {