xar_signature_add_x509certificate: handle cases where cert_data is null #2
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
miles/xar!2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
xar is segfaulting on my ARM64 systems (Mac M1, Raspberry Pi 4)
#0 0x000000000024e470 in xar_signature_add_x509certificate (sig=0x23aef5d0, cert_data=0x0, cert_len=1149) at xar/xar/lib/signature.c:133
This PR modifies xar_signature_add_x509certificate to check that cert_data is not null before continuing with the signature.