Verified Commit 8c2741a3 authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

Fix find_grp_pkgs segfault

Use alpmlist_to_pylist2 to pass NULL to the package function to prevent
arbitrary memory to be passed to Py_INCREF.

Closes: FS#71261
parent ed91df70
......@@ -331,7 +331,7 @@ PyObject* pyalpm_find_grp_pkgs(PyObject* self, PyObject *args) {
return NULL;
pkg_list = alpm_find_group_pkgs(db_list, grpname);
result = alpmlist_to_pylist(pkg_list, pyalpm_package_from_pmpkg);
result = alpmlist_to_pylist2(pkg_list, pyalpm_package_from_pmpkg, NULL);
return result;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment