FreeBSD Bugzilla – Attachment 183872 Details for
Bug 220308
security/sssd Python 2 hangs calling pysss.getgrouplist()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
linked patch
src__python__pysss.patch (text/plain), 683 bytes, created by
Kevin Bowling
on 2017-06-28 05:56:23 UTC
(
hide
)
Description:
linked patch
Filename:
MIME Type:
Creator:
Kevin Bowling
Created:
2017-06-28 05:56:23 UTC
Size:
683 bytes
patch
obsolete
>--- src/python/pysss.c.dist 2015-05-03 04:14:30.000000000 +0200 >+++ src/python/pysss.c 2015-05-03 04:18:31.000000000 +0200 >@@ -781,12 +781,14 @@ > goto fail; > } > >- do { >+ ret = getgrouplist(username, pw->pw_gid, groups, &ngroups); >+ if (ret == -1) { >+ groups = realloc(groups, ngroups * sizeof(gid_t)); > ret = getgrouplist(username, pw->pw_gid, groups, &ngroups); >- if (ret < ngroups) { >- groups = realloc(groups, ngroups * sizeof(gid_t)); >+ if (ret == -1) { >+ goto fail; > } >- } while (ret != ngroups); >+ } > > groups_tuple = PyTuple_New((Py_ssize_t) ngroups); > if (groups_tuple == NULL) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 220308
: 183872