]> code.ossystems Code Review - openembedded-core.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:52:54 +0000 (01:52 +0000)
commit61010972284cc53cfc7958a9f6422e3fe74fcc0e
treec07fc9f3b1bfe96f178d4470ab4fb819528bda34
parent5445e12e5a32cc5c51ce8a29f2800692ed831115
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 "]",
                           ^

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
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