Fix 8 byte oobread on pkcs7 parser ##crash

This commit is contained in:
pancake 2023-04-19 17:25:28 +02:00
parent 093d583000
commit fa21d2b32e

View File

@ -634,6 +634,9 @@ static bool r_pkcs7_parse_spcdata(SpcAttributeTypeAndOptionalValue *data, RASN1O
if (!data->type) {
return false;
}
if (object->list.length < 2) {
return false;
}
RASN1Object *obj1 = object->list.objects[1];
if (object->list.length > 1) {
if (obj1) {