From 716ca530e1c4515d8683c9d5be3d56b301758b66 Mon Sep 17 00:00:00 2001 From: James <> Date: Wed, 4 Nov 2015 11:49:21 +0000 Subject: trunk-47381 --- package/libs/elfutils/patches/004-maybe-uninitialized.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 package/libs/elfutils/patches/004-maybe-uninitialized.patch (limited to 'package/libs/elfutils/patches/004-maybe-uninitialized.patch') diff --git a/package/libs/elfutils/patches/004-maybe-uninitialized.patch b/package/libs/elfutils/patches/004-maybe-uninitialized.patch new file mode 100644 index 0000000..059ea27 --- /dev/null +++ b/package/libs/elfutils/patches/004-maybe-uninitialized.patch @@ -0,0 +1,11 @@ +--- a/libelf/elf_getarsym.c ++++ b/libelf/elf_getarsym.c +@@ -169,7 +169,7 @@ elf_getarsym (elf, ptr) + + /* We have an archive. The first word in there is the number of + entries in the table. */ +- uint64_t n; ++ uint64_t n = 0; + size_t off = elf->start_offset + SARMAG + sizeof (struct ar_hdr); + if (read_number_entries (&n, elf, &off, index64_p) < 0) + { -- cgit v1.2.3