Red Hat Bugzilla – Bug 834345
long lines in /etc/group causes initgroups() to fail
Last modified: 2016-11-24 10:53:51 EST
Created attachment 593480 [details]
error output from id when there is a very long line in /etc/group
Description of problem:
A long line in /etc/group will cause all calls to initgroup() to fail. This is a fixed bug in upstream.
Version-Release number of selected component (if applicable):
Verified on 2.14.90-24.fc16.7, but I think any 2.14 glibc has the bug.
Steps to Reproduce:
1. create a group entry that is longer than 26000 chars
2. run something that does initgroups(), id will work
failure with error output attached
initgroups() to work
commit id ae1bc2fa1c58b13ffa83483c24e547148762e24f upstream fixes this. It's a very simple patch: realloc() is being given the wrong parameter for the new buffer size.
This is already fixed in f17 & rawhide. There are currently no plans to backport and respin the F16 glibc.