Bug 834345 - long lines in /etc/group causes initgroups() to fail
Summary: long lines in /etc/group causes initgroups() to fail
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: 16
Hardware: All
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Jeff Law
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-21 15:26 UTC by Bill Pemberton
Modified: 2016-11-24 15:53 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-21 15:38:14 UTC
Type: Bug
Embargoed:


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 15:26 UTC, Bill Pemberton
no flags Details

Description Bill Pemberton 2012-06-21 15:26:30 UTC
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:
always

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 15:38:14 UTC
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.