Hello community, here is the log from the commit of package elfutils for openSUSE:Factory checked in at 2013-06-19 14:43:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/elfutils (Old) and /work/SRC/openSUSE:Factory/.elfutils.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "elfutils" Changes: -------- --- /work/SRC/openSUSE:Factory/elfutils/elfutils.changes 2013-03-28 13:10:32.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.elfutils.new/elfutils.changes 2013-06-19 14:43:03.000000000 +0200 @@ -1,0 +2,6 @@ +Tue Jun 18 16:05:13 UTC 2013 - [email protected] + +- elfutils-sizeof-pointer-memaccess.patch: Fix sizeof-pointer-memaccess + warnings + +------------------------------------------------------------------- New: ---- elfutils-sizeof-pointer-memaccess.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ elfutils.spec ++++++ --- /var/tmp/diff_new_pack.xj95uF/_old 2013-06-19 14:43:04.000000000 +0200 +++ /var/tmp/diff_new_pack.xj95uF/_new 2013-06-19 14:43:04.000000000 +0200 @@ -35,6 +35,7 @@ Patch7: elfutils-0.148-dont-crash.diff Patch8: elfutils-revert-portability-scanf.patch Patch9: elfutils-aarch64.patch +Patch10: elfutils-sizeof-pointer-memaccess.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: bison BuildRequires: flex @@ -146,6 +147,7 @@ %patch7 -p1 %patch8 -p1 -R %patch9 -p1 +%patch10 -p1 %build # Change DATE/TIME macros to use last change time of elfutils.changes ++++++ elfutils-sizeof-pointer-memaccess.patch ++++++ Index: elfutils-0.155/src/ar.c =================================================================== --- elfutils-0.155.orig/src/ar.c +++ elfutils-0.155/src/ar.c @@ -461,7 +461,7 @@ do_oper_extract (int oper, const char *a long int instance) { bool found[argc]; - memset (found, '\0', sizeof (found)); + memset (found, '\0', sizeof (bool) * argc); size_t name_max = 0; inline bool should_truncate_fname (void) @@ -919,7 +919,7 @@ do_oper_delete (const char *arfname, cha long int instance) { bool *found = alloca (sizeof (bool) * argc); - memset (found, '\0', sizeof (found)); + memset (found, '\0', sizeof (bool) * argc); /* List of the files we keep. */ struct armem *to_copy = NULL; Index: elfutils-0.155/src/nm.c =================================================================== --- elfutils-0.155.orig/src/nm.c +++ elfutils-0.155/src/nm.c @@ -769,8 +769,9 @@ show_symbols_sysv (Ebl *ebl, GElf_Word s gelf_getshdr (scn, &shdr_mem)->sh_name); if (unlikely (name == NULL)) { - name = alloca (sizeof "[invalid sh_name 0x12345678]"); - snprintf (name, sizeof name, "[invalid sh_name %#" PRIx32 "]", + size_t len = sizeof "[invalid sh_name 0x12345678]"; + name = alloca (len); + snprintf (name, len, "[invalid sh_name %#" PRIx32 "]", gelf_getshdr (scn, &shdr_mem)->sh_name); } scnnames[elf_ndxscn (scn)] = name; -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
