mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-26 09:07:30 +09:00
Prevent double free in mar_sign.c
This commit is contained in:
parent
f52945acfa
commit
a959f4717e
1 changed files with 1 additions and 0 deletions
|
|
@ -534,6 +534,7 @@ extract_signature(const char *src, uint32_t sigIndex, const char * dest)
|
||||||
for (i = 0; i <= sigIndex; i++) {
|
for (i = 0; i <= sigIndex; i++) {
|
||||||
/* Avoid leaking while skipping signatures */
|
/* Avoid leaking while skipping signatures */
|
||||||
free(extractedSignature);
|
free(extractedSignature);
|
||||||
|
extractedSignature = NULL;
|
||||||
|
|
||||||
/* skip past the signature algorithm ID */
|
/* skip past the signature algorithm ID */
|
||||||
if (fseeko(fpSrc, sizeof(uint32_t), SEEK_CUR)) {
|
if (fseeko(fpSrc, sizeof(uint32_t), SEEK_CUR)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue