Bug 674361 - Bug in sgetsgent_r breaking sgetsgent with large gshadow strings
Summary: Bug in sgetsgent_r breaking sgetsgent with large gshadow strings
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: 13
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Andreas Schwab
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 674234
TreeView+ depends on / blocked
 
Reported: 2011-02-01 15:53 UTC by Tomas Mraz
Modified: 2016-11-24 16:00 UTC (History)
4 users (show)

Fixed In Version: glibc-2.13.90-4
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-25 15:32:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Tomas Mraz 2011-02-01 15:53:44 UTC
Description of problem:
sgetsgent_r does not set errno to ERANGE but returns it directly. However sgetsgent (and I suppose other eventual callers as well) expect it to set the errno to the actual error).

The attached patch fixes the problem.


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