abrt/0001-a-a-analyze-core-check-the-len-if-the-line-array-bef.patch
2012-04-02 13:50:20 +02:00

28 lines
1019 B
Diff

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