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