xar_signature_add_x509certificate: handle cases where cert_data is null #2

Merged
squash merged 1 commit from master into master 2023-03-31 16:03:48 -05:00
squash commented 2023-03-31 15:43:41 -05:00 (Migrated from github.com)

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.

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.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
miles/xar!2
No description provided.