Bug 216834 - unchecked malloc in sunrpc/svc_run.c
Summary: unchecked malloc in sunrpc/svc_run.c
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: glibc
Version: 5.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
URL: http://sources.redhat.com/bugzilla/sh...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-11-22 05:48 UTC by Chris Snook
Modified: 2007-11-30 22:07 UTC (History)
1 user (show)

Fixed In Version: RC
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-02-08 00:46:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
patch to catch and report malloc failure and return gracefully (466 bytes, patch)
2006-11-22 05:55 UTC, Chris Snook
no flags Details | Diff

Description Chris Snook 2006-11-22 05:48:46 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060911 Red Hat/1.5.0.7-0.1.el4 Firefox/1.5.0.7 pango-text

Description of problem:
Reported upstream:

http://sources.redhat.com/bugzilla/show_bug.cgi?id=3559

my_pollfd malloc() is unchecked, which could result in a segmentation fault.

Version-Release number of selected component (if applicable):
all current RHEL and Fedora versions

How reproducible:
Didn't try


Steps to Reproduce:
The bug is not easily reproducible on demand, but could be responsible for some unexplained ypbind crashes.

Actual Results:
An ill-timed malloc() failure would cause a segmentation fault.

Expected Results:
The failure should be caught and reported, and the function should return gracefully to permit the calling application to handle it.

Additional info:
This was discovered by code inspection while troubleshooting ypbind.

Comment 1 Chris Snook 2006-11-22 05:55:07 UTC
Created attachment 141875 [details]
patch to catch and report malloc failure and return gracefully

This patch has also been submitted upstream:

http://sources.redhat.com/bugzilla/show_bug.cgi?id=3559

Comment 2 Jakub Jelinek 2006-11-29 19:04:54 UTC
Should be fixed in glibc-2.5-6 in dist-5E.

Comment 3 RHEL Program Management 2006-11-29 19:30:24 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 4 Paul Dickson 2006-12-01 14:57:08 UTC
Would this change be causing bug#218036.  The changelog for glibc-2.5.90-8 is
rather short.

Comment 5 Jay Turner 2007-01-11 02:42:48 UTC
QE ack for RHEL5.

Comment 6 RHEL Program Management 2007-02-08 00:46:28 UTC
A package has been built which should help the problem described in 
this bug report. This report is therefore being closed with a resolution 
of CURRENTRELEASE. You may reopen this bug report if the solution does 
not work for you.



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