Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 599314 Details for
Bug 841319
In-band signalling in __pmGetPDU leads to pmcd memory leak
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
proposed patch for pdu.c
patch.841319 (text/plain), 666 bytes, created by
Ken McDonell
on 2012-07-20 06:36:40 UTC
(
hide
)
Description:
proposed patch for pdu.c
Filename:
MIME Type:
Creator:
Ken McDonell
Created:
2012-07-20 06:36:40 UTC
Size:
666 bytes
patch
obsolete
>diff --git a/src/libpcp/src/pdu.c b/src/libpcp/src/pdu.c >index cdec982..9ca26c5 100644 >--- a/src/libpcp/src/pdu.c >+++ b/src/libpcp/src/pdu.c >@@ -525,6 +525,15 @@ check_read_len: > > *result = (__pmPDU *)php; > php->type = ntohl((unsigned int)php->type); >+ if (php->type < 0) { >+ /* >+ * PDU type is bad ... could be a possible mem leak attack like >+ * https://bugzilla.redhat.com/show_bug.cgi?id=841319 >+ */ >+ __pmNotifyErr(LOG_ERR, "__pmGetPDU: fd=%d illegal PDU type=%d in hdr", fd, php->type); >+ __pmUnpinPDUBuf(pdubuf); >+ return PM_ERR_IPC; >+ } > php->from = ntohl((unsigned int)php->from); > #ifdef PCP_DEBUG > if (pmDebug & DBG_TRACE_PDU) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 841319
: 599314