summaryrefslogtreecommitdiff
path: root/post
diff options
context:
space:
mode:
authorSiarhei Siamashka <siarhei.siamashka@gmail.com>2015-09-02 23:36:39 (GMT)
committerHans de Goede <hdegoede@redhat.com>2015-09-10 18:20:45 (GMT)
commitbfb05d0187d70274c77d02dc0de5e728e1f8be05 (patch)
treef35a7772fada4a52bcc26fb874aa227dd747edae /post
parentf88d546fb5efa1793db0856dd19611f70bf764d9 (diff)
downloadu-boot-fsl-qoriq-bfb05d0187d70274c77d02dc0de5e728e1f8be05.tar.xz
sunxi: Ensure that 'mksunxiboot' tool produces deterministic output
Currently some uninitialized padding bytes are written to the output file, as can be confirmed with valgrind: $ valgrind tools/mksunxiboot spl/u-boot-spl.bin spl/sunxi-spl.bin ==5581== Syscall param write(buf) points to uninitialised byte(s) ==5581== at 0x4F0F940: __write_nocancel (in /lib64/libc-2.20.so) ==5581== by 0x400839: main (in /tmp/u-boot/tools/mksunxiboot) ==5581== Address 0xffeff5d3c is on thread 1's stack ==5581== in frame #1, created by main (???) This patch fixes the problem by clearing the whole structure instead of just a portion of it. Signed-off-by: Siarhei Siamashka <siarhei.siamashka@gmail.com> Acked-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'post')
0 files changed, 0 insertions, 0 deletions