forked from Openwrt/openwrt
f1f87ef350
Always initialize header with zeros as otherwise we may end up with uninitialized memory which ruins reproducibility. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
12 lines
344 B
Diff
12 lines
344 B
Diff
--- a/squashfs-tools/mksquashfs.c
|
|
+++ b/squashfs-tools/mksquashfs.c
|
|
@@ -1822,7 +1822,7 @@ int main(int argc, char *argv[])
|
|
{
|
|
struct stat buf, source_buf;
|
|
int i;
|
|
- squashfs_super_block sBlk;
|
|
+ squashfs_super_block sBlk = {};
|
|
char *b, *root_name = NULL;
|
|
int be, nopad = FALSE, keep_as_directory = FALSE, orig_be;
|
|
squashfs_inode inode;
|