Skip to content

Commit

Permalink
Merge pull request planetbeing#5 from PieroV/fix-reproducibility
Browse files Browse the repository at this point in the history
Memset a UDIF header to ensure archive reproducibility.
  • Loading branch information
bhearsum authored Sep 5, 2023
2 parents afebe24 + 2262847 commit 2cb30de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dmg/dmglib.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ int buildDmg(AbstractFile* abstractIn, AbstractFile* abstractOut, unsigned int B

ChecksumToken dataForkToken;

UDIFResourceFile koly;
UDIFResourceFile koly = {0};

off_t plistOffset;
uint32_t plistSize;
uint32_t dataForkChecksum;
Expand Down Expand Up @@ -294,8 +294,8 @@ int convertToDMG(AbstractFile* abstractIn, AbstractFile* abstractOut) {
uint32_t dataForkChecksum;
uint64_t numSectors;

UDIFResourceFile koly;
UDIFResourceFile koly = {0};

char partitionName[512];

off_t fileLength;
Expand Down

0 comments on commit 2cb30de

Please sign in to comment.