diff --git a/elfutils-uninitialized.diff b/elfutils-uninitialized.diff new file mode 100644 index 0000000..4271c15 --- /dev/null +++ b/elfutils-uninitialized.diff @@ -0,0 +1,13 @@ +--- ./libdwfl/linux-kernel-modules.c.orig 2010-02-10 12:12:03.000000000 +0100 ++++ ./libdwfl/linux-kernel-modules.c 2010-02-10 12:14:58.000000000 +0100 +@@ -577,8 +577,8 @@ + int + dwfl_linux_kernel_report_kernel (Dwfl *dwfl) + { +- Dwarf_Addr start; +- Dwarf_Addr end; ++ Dwarf_Addr start = 0; ++ Dwarf_Addr end = 0; + inline Dwfl_Module *report (void) + { + return INTUSE(dwfl_report_module) (dwfl, KERNEL_MODNAME, start, end); diff --git a/elfutils.changes b/elfutils.changes index eaf5c1b..f7d392a 100644 --- a/elfutils.changes +++ b/elfutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Feb 10 12:21:51 CET 2010 - rguenther@suse.de + +- Fix uninitialized variable. + ------------------------------------------------------------------- Sat Dec 12 18:13:13 CET 2009 - jengelh@medozas.de diff --git a/elfutils.spec b/elfutils.spec index 33bdcc8..05a8f66 100644 --- a/elfutils.spec +++ b/elfutils.spec @@ -1,7 +1,7 @@ # # spec file for package elfutils (Version 0.142) # -# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -21,7 +21,7 @@ Name: elfutils License: GPLv2+ Version: 0.142 -Release: 3 +Release: 4 Summary: Higher-level library to access ELF Group: System/Libraries Url: http://elfutils.fedorahosted.org @@ -38,6 +38,7 @@ Patch11: build.diff Patch12: elfutils-old-scanf-fix.diff Patch13: elfutils-suse-10.3-fixes.diff Patch20: elfutils-0.137-dwarf-header-check-fix.diff +Patch21: elfutils-uninitialized.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -210,6 +211,7 @@ Authors: %patch13 %endif %patch20 -p1 +%patch21 %build autoreconf -fi