Blame SOURCES/0147-lib-fix-a-SEGV-in-list_possible_events.patch
|
|
057568 |
From 38a8c2fb2b4a46a35899f6b1066ec65ef155eeac Mon Sep 17 00:00:00 2001
|
|
|
057568 |
From: Jakub Filak <jfilak@redhat.com>
|
|
|
057568 |
Date: Thu, 9 Jul 2015 15:32:19 +0200
|
|
|
057568 |
Subject: [PATCH] lib: fix a SEGV in list_possible_events()
|
|
|
057568 |
|
|
|
057568 |
The bug has been introduced in
|
|
|
057568 |
commit fc028b3417349fd60a2ddd1aff1127a417df512b
|
|
|
057568 |
|
|
|
057568 |
Related: #1224984
|
|
|
057568 |
|
|
|
057568 |
Signed-off-by: Jakub Filak <jfilak@redhat.com>
|
|
|
057568 |
---
|
|
|
057568 |
src/lib/run_event.c | 4 ++++
|
|
|
057568 |
1 file changed, 4 insertions(+)
|
|
|
057568 |
|
|
|
057568 |
diff --git a/src/lib/run_event.c b/src/lib/run_event.c
|
|
|
057568 |
index 252c6bc..30df9af 100644
|
|
|
057568 |
--- a/src/lib/run_event.c
|
|
|
057568 |
+++ b/src/lib/run_event.c
|
|
|
057568 |
@@ -360,7 +360,11 @@ static char* pop_next_command(GList **pp_rule_list,
|
|
|
057568 |
if (pd == NULL)
|
|
|
057568 |
free_me = real_val = dd_load_text_ext(dd, var_name, DD_FAIL_QUIETLY_ENOENT);
|
|
|
057568 |
else
|
|
|
057568 |
+ {
|
|
|
057568 |
real_val = problem_data_get_content_or_NULL(pd, var_name);
|
|
|
057568 |
+ if (real_val == NULL)
|
|
|
057568 |
+ free_me = real_val = xstrdup("");
|
|
|
057568 |
+ }
|
|
|
057568 |
free(var_name);
|
|
|
057568 |
int vals_differ = regex ? regcmp_lines(real_val, eq_sign + 1) : strcmp(real_val, eq_sign + 1);
|
|
|
057568 |
free(free_me);
|
|
|
057568 |
--
|
|
|
057568 |
2.4.3
|
|
|
057568 |
|