Source: proj
Version: 4.9.2-2
Severity: wishlist
Tags: patch upstream
Usertags: toolchain

Dear Maintainer,

While working on the “reproducible builds” effort [1], we have noticed
that the nad2bin binary has unreproducible output, as it includes
uninitialized memory state when's length is less than the
available 80 bytes.

See the attached patch for a proposed solution.

Alexis Bienvenüe.


Description: Makes nad2bin output reproducible
 Init char[80] variable with zeroes, so that nad2bin output does
 not depend on memory state before call, and hence be reproducible.
Author: Alexis Bienvenüe <>

--- proj-4.9.2.orig/src/nad2bin.c
+++ proj-4.9.2/src/nad2bin.c
@@ -98,6 +98,7 @@ int main(int argc, char **argv) {
 /*      Read the ASCII Table                                            */
 /* ==================================================================== */
+    memset(,0,MAX_TAB_ID);
     if ( NULL == fgets(, MAX_TAB_ID, stdin) ) {
Reproducible-builds mailing list

Reply via email to