[Reproducible-builds] Bug#827382: dwarfutils: does not build reproducibly

Reiner Herrmann reiner at reiner-h.de
Wed Jun 15 17:47:20 UTC 2016


Control: tags = patch upstream

Hi,

I found that the problem is in a C file which is generated during build
(tmp-tt-table.c).  It contains some tables, and the last two elements
columsn of one table were not deterministic.
The reason is that the array is sized incorrectly.

It is declared as:

  unsigned int tag_tree_combination_table[TAG_TABLE_ROW_MAXIMUM][TAG_TABLE_COLUMN_MAXIMUM];

where TAG_TABLE_COLUMN_MAXIMUM was set to EXT_TAG_TABLE_COLS, which is 5.
But when calling this tool with -s, it uses STD_TAG_TABLE_COLUMNS for
iterating over the table, which is 7 -> two elements more than the table
is wide, which causes memory from outside the table to be written into
the file.

The attached patch fixes this by setting the maximum column width to
STD_TAG_TABLE_COLUMNS.

Kind regards,
  Reiner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dwarfutils.patch
Type: text/x-diff
Size: 578 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20160615/1c87136a/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20160615/1c87136a/attachment.sig>


More information about the Reproducible-builds mailing list