mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-24 05:40:10 +00:00
Fix 8 byte oobread on pkcs7 parser ##crash
This commit is contained in:
parent
093d583000
commit
fa21d2b32e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user