[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Info-mtools] [PATCH] initializeDirentry: Zero-out entry direntry_t befo

From: Chris Lamb
Subject: [Info-mtools] [PATCH] initializeDirentry: Zero-out entry direntry_t before using it
Date: Mon, 29 Oct 2018 16:45:17 -0400

Hi mtools maintainers,

Whilst working on the Reproducible Builds effort [0] we noticed
that mtools does not operate on images in a reproducibile manner
and can even create corrupted FAT entries for directories when
when mcopy copies a directory.

This is due to writing unintialised memory and is fixed by a

The issue and patch were independently in both Debian bug #837044
[1] and then a few years later in #900409 [2] when attempting to
create reproducible Debian Installer images. It was forwarded
upstream at [3] but was seemingly not applied (the fix is not
present in recent 4.0.19 tarball).


 direntry.c | 1 +
 1 file changed, 1 insertion(+)


     : :'  :     Chris Lamb
     `. `'`      address@hidden /

Attachment: initializeDirentry-Zero-out-entry-direntry_t-before-.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]