]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
elfutils: Fix size passed to snprintf for invalid sh_name case
authorZhenhua Luo <zhenhua.luo@freescale.com>
Tue, 12 Mar 2013 03:58:58 +0000 (11:58 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 15 Mar 2013 01:53:04 +0000 (01:53 +0000)
commit8a9a93369cbfbde5025ee789d03467a7af308a0e
treeda55356b99d07cb6142a719b133cdfe63add6e95
parentd350bb84896530455a2cd6f10000ba6db6a10e22
elfutils: Fix size passed to snprintf for invalid sh_name case

Following build error will appear on Fedora18.
nm.c: In function 'show_symbols_sysv':
nm.c:756:27: error: argument to 'sizeof' in 'snprintf' call is the same expression as the destination; did you mean to provide an explicit length? [-Werror=sizeof-pointer-memaccess]
    snprintf (name, sizeof name, "[invalid sh_name %#" PRIx32 "]",
                           ^

(From OE-Core rev: 61010972284cc53cfc7958a9f6422e3fe74fcc0e)

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/elfutils/elfutils/nm-Fix-size-passed-to-snprintf-for-invalid-sh_name-case.patch [new file with mode: 0644]
meta/recipes-devtools/elfutils/elfutils_0.148.bb