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 148083 Details for
Bug 228749
[RHEL4][patch] cid-17 cid-18 Fix memory leak in libe2p (e2p_edit_mntopts)
[?]
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]
Correctly free buffer before returning from e2p_edit_mntopts
e2fsprogs-1.35-edit_mntops_leak.patch (text/plain), 770 bytes, created by
Bryn M. Reeves
on 2007-02-14 19:43:21 UTC
(
hide
)
Description:
Correctly free buffer before returning from e2p_edit_mntopts
Filename:
MIME Type:
Creator:
Bryn M. Reeves
Created:
2007-02-14 19:43:21 UTC
Size:
770 bytes
patch
obsolete
>Coverity ID: 17: Resource Leak > >Need to free memory allocated to buf. > >Index: e2fsprogs+chaos/lib/e2p/mntopts.c >=================================================================== >--- e2fsprogs+chaos.orig/lib/e2p/mntopts.c >+++ e2fsprogs+chaos/lib/e2p/mntopts.c >@@ -120,10 +120,14 @@ int e2p_edit_mntopts(const char *str, __ > cp++; > break; > } >- if (e2p_string2mntopt(cp, &mask)) >+ if (e2p_string2mntopt(cp, &mask)) { >+ free(buf); > return 1; >- if (ok && !(ok & mask)) >+ } >+ if (ok && !(ok & mask)) { >+ free(buf); > return 1; >+ } > if (mask & EXT3_DEFM_JMODE) > *mntopts &= ~EXT3_DEFM_JMODE; > if (neg) >@@ -132,5 +132,6 @@ int e2p_edit_mntopts(const char *str, __ > *mntopts |= mask; > cp = next ? next+1 : 0; > } >+ free(buf); > return 0; > } >
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 228749
: 148083