[Buildroot] [PATCH 1/1] package/gcc: Initialize st in elf_is_symlink
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Mon Mar 18 21:14:17 UTC 2019
Hello James,
On Mon, 18 Mar 2019 09:59:33 +0800
james.hilliard1 at gmail.com wrote:
> From: James Hilliard <james.hilliard1 at gmail.com>
>
> Fixes:
> ../../../../libsanitizer/libbacktrace/../../libbacktrace/elf.c: In function ‘elf_is_symlink’:
> ../../../../libsanitizer/libbacktrace/../../libbacktrace/elf.c:772:21: error: ‘st.st_mode’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
> return S_ISLNK (st.st_mode);
> ^
>
> Signed-off-by: James Hilliard <james.hilliard1 at gmail.com>
> ---
> ...race-Initialize-st-in-elf_is_symlink.patch | 32 +++++++++++++++++++
> 1 file changed, 32 insertions(+)
> create mode 100644 package/gcc/8.3.0/0001-libbacktrace-Initialize-st-in-elf_is_symlink.patch
The patch has been rejected upstream, so I'm not really keen on merging
this. In addition, you're not giving enough details on the conditions
under which this issue was found. Which configuration ? Which host gcc
version ? etc.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
More information about the buildroot
mailing list