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

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