fixed rhbz#804309

This commit is contained in:
Jiri 2012-04-02 13:50:20 +02:00
parent 038b66d302
commit da0e1f2b09
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,27 @@
From cbb1054b9b557154c31ab5cf3af9ece7fd106ca2 Mon Sep 17 00:00:00 2001
Message-Id: <cbb1054b9b557154c31ab5cf3af9ece7fd106ca2.1333367073.git.jmoskovc@redhat.com>
From: Jiri Moskovcak <jmoskovc@redhat.com>
Date: Mon, 2 Apr 2012 13:37:56 +0200
Subject: [PATCH] a-a-analyze-core: check the len if the line array before
accessing it rhbz#804309
---
src/plugins/abrt-action-analyze-core | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/plugins/abrt-action-analyze-core b/src/plugins/abrt-action-analyze-core
index 0526211..b683fbe 100644
--- a/src/plugins/abrt-action-analyze-core
+++ b/src/plugins/abrt-action-analyze-core
@@ -99,7 +99,7 @@ def extract_info_from_core(coredump_name):
for line in lines:
b_ids_line = line.split()
- if len(b_ids_line) > 2:
+ if len(b_ids_line) >= EXECUTABLE:
# [exe] -> the executable itself
# linux-vdso.so.1 -> Virtual Dynamic Shared Object
# linux-gate.so.1 -> the same as vdso
--
1.7.9.3

View File

@ -36,6 +36,7 @@ Patch1: blacklist.patch
Patch2: abrt_disable_gpgcheck.diff
Patch3: 0002-gui-fixed-crash-when-chowning-directory-using-dbus-c.patch
Patch4: 0003-dbus-use-the-helper-dir_accessible_by_uid-more-consi.patch
Patch5: 0001-a-a-analyze-core-check-the-len-if-the-line-array-bef.patch
BuildRequires: dbus-devel
BuildRequires: gtk2-devel
BuildRequires: rpm-devel >= 4.6
@ -237,6 +238,7 @@ uses PolicyKit to authorize to access the problem data.
%patch2 -p1 -b .gpgcheck
%patch3 -p1
%patch4 -p1
%patch5 -p1 -b .rhbz804309
%build
autoconf
@ -640,7 +642,8 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
* Mon Apr 02 2012 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.10-1
- new upstream release
- fixed problem with empty problem directory rhzb#808131
- Resolves: #808131
- fixed exception in a-a-a-core when eu-unstrip output is broken
- Resolves: #808131, #804309
* Mon Mar 19 2012 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.7-7
- fixed problems with rhel gpg keys rhbz#800419