summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-12-13 22:15:37 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-12-13 22:15:37 +0100
commit2e69b03ddd11de777e6d52a995ff0d1675eb58d2 (patch)
tree76b644b0531610b51cb0bfe4b05c6f3de875cf3e /modules
parente80c7360235d5c3d6d5e2a615ad3909c3487dc7d (diff)
downloadUXP-2e69b03ddd11de777e6d52a995ff0d1675eb58d2.tar
UXP-2e69b03ddd11de777e6d52a995ff0d1675eb58d2.tar.gz
UXP-2e69b03ddd11de777e6d52a995ff0d1675eb58d2.tar.lz
UXP-2e69b03ddd11de777e6d52a995ff0d1675eb58d2.tar.xz
UXP-2e69b03ddd11de777e6d52a995ff0d1675eb58d2.zip
Prevent double free in mar_sign.c
Diffstat (limited to 'modules')
-rw-r--r--modules/libmar/sign/mar_sign.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/libmar/sign/mar_sign.c b/modules/libmar/sign/mar_sign.c
index 84319651d..182f387d9 100644
--- a/modules/libmar/sign/mar_sign.c
+++ b/modules/libmar/sign/mar_sign.c
@@ -534,6 +534,7 @@ extract_signature(const char *src, uint32_t sigIndex, const char * dest)
for (i = 0; i <= sigIndex; i++) {
/* Avoid leaking while skipping signatures */
free(extractedSignature);
+ extractedSignature = NULL;
/* skip past the signature algorithm ID */
if (fseeko(fpSrc, sizeof(uint32_t), SEEK_CUR)) {