Bug 834345 - long lines in /etc/group causes initgroups() to fail
long lines in /etc/group causes initgroups() to fail
Product: Fedora
Classification: Fedora
Component: glibc (Show other bugs)
All Unspecified
unspecified Severity medium
: ---
: ---
Assigned To: Jeff Law
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-06-21 11:26 EDT by Bill Pemberton
Modified: 2016-11-24 10:53 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-06-21 11:38:14 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
error output from id when there is a very long line in /etc/group (3.58 KB, application/octet-stream)
2012-06-21 11:26 EDT, Bill Pemberton
no flags Details

  None (edit)
Description Bill Pemberton 2012-06-21 11:26:30 EDT
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.

How reproducible:

Steps to Reproduce:
1. create a group entry that is longer than 26000 chars
2. run something that does initgroups(), id will work

Actual results:
failure with error output attached

Expected results:
initgroups() to work

Additional info:
commit id ae1bc2fa1c58b13ffa83483c24e547148762e24f upstream fixes this.  It's a very simple patch: realloc() is being given the wrong parameter for the new buffer size.
Comment 1 Jeff Law 2012-06-21 11:38:14 EDT
This is already fixed in f17 & rawhide.  There are currently no plans to backport and respin the F16 glibc.

Note You need to log in before you can comment on or make changes to this bug.