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 703982 Details for
Bug 911110
krb5_get_init_creds_keytab() leaks memory
[?]
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
patch (text/plain), 1.95 KB, created by
Nalin Dahyabhai
on 2013-02-28 20:41:35 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Nalin Dahyabhai
Created:
2013-02-28 20:41:35 UTC
Size:
1.95 KB
patch
obsolete
>commit 69fbb22a4ff5fae721bc9c5d9612b1c772a8d977 >Author: Nalin Dahyabhai <nalin@redhat.com> >Date: Thu Feb 28 15:16:08 2013 -0500 > > Fix memory leak in lookup_etypes_for_keytab() > > Petr Spacek notes that when we walk the keytab in > lookup_etypes_for_keytab(), we don't free entries when we're finished > examining them. Ensure that when krb5_kt_next_entry() succeeds, > we make sure to free the entry storage before we exit the current > loop iteration. > >diff --git a/src/lib/krb5/krb/gic_keytab.c b/src/lib/krb5/krb/gic_keytab.c >index 3dca073..9c6bc5b 100644 >--- a/src/lib/krb5/krb/gic_keytab.c >+++ b/src/lib/krb5/krb/gic_keytab.c >@@ -110,9 +110,9 @@ lookup_etypes_for_keytab(krb5_context context, krb5_keytab keytab, > goto cleanup; > > if (!krb5_c_valid_enctype(entry.key.enctype)) >- continue; >+ goto next_entry; > if (!krb5_principal_compare(context, entry.principal, client)) >- continue; >+ goto next_entry; > /* Make sure our list is for the highest kvno found for client. */ > if (entry.vno > max_kvno) { > free(etypes); >@@ -120,11 +120,12 @@ lookup_etypes_for_keytab(krb5_context context, krb5_keytab keytab, > count = 0; > max_kvno = entry.vno; > } else if (entry.vno != max_kvno) >- continue; >+ goto next_entry; > > /* Leave room for the terminator and possibly a second entry. */ > p = realloc(etypes, (count + 3) * sizeof(*etypes)); > if (p == NULL) { >+ krb5_free_keytab_entry_contents(context, &entry); > ret = ENOMEM; > goto cleanup; > } >@@ -136,6 +137,8 @@ lookup_etypes_for_keytab(krb5_context context, krb5_keytab keytab, > entry.key.enctype == ENCTYPE_DES_CBC_MD4) > etypes[count++] = ENCTYPE_DES_CBC_CRC; > etypes[count] = 0; >+next_entry: >+ krb5_free_keytab_entry_contents(context, &entry); > } > > ret = 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 911110
: 703982