Blame SOURCES/0003-python-pycurl-7.43.0.2-decode-cookie-info.patch

808084
From f5141d34f54ec2ae3309324a99f0f5887f0a8201 Mon Sep 17 00:00:00 2001
808084
From: Dmitriy Taychenachev <dmitriy.taychenachev@skypicker.com>
808084
Date: Tue, 9 Apr 2019 11:23:58 +0200
808084
Subject: [PATCH] decode_string_list: fix populating list of decoded strings
808084
808084
Under Python3 the call curl.getinfo(pycurl.INFO_COOKIELIST) returns
808084
invalid list (for example [<NULL>]), which cases segmentation fault.
808084
The cause is in function decode_string_list() (Python3 only) which
808084
creates new list without populating it with elements. This commit
808084
adds the setting of elements fixing the behaviour.
808084
808084
Upstream-commit: 5df7a0e5bb38a3db5f04721add571cd32c5e3eb8
808084
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
808084
---
808084
 src/easyinfo.c | 1 +
808084
 1 file changed, 1 insertion(+)
808084
808084
diff --git a/src/easyinfo.c b/src/easyinfo.c
808084
index b3d731b..3712646 100644
808084
--- a/src/easyinfo.c
808084
+++ b/src/easyinfo.c
808084
@@ -277,6 +277,7 @@ decode_string_list(PyObject *list)
808084
         if (decoded_item == NULL) {
808084
             goto err;
808084
         }
808084
+	PyList_SetItem(decoded_list, i, decoded_item);
808084
     }
808084
     
808084
     return decoded_list;
808084
-- 
808084
2.21.1
808084