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 863040 Details for
Bug 1065132
Memory leak in error path of the password prompt for pam_pkcs11.
[?]
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]
Fix memory like and clear password on error.
pam_pkcs11-mem-leak.patch (text/plain), 541 bytes, created by
Bob Relyea
on 2014-02-14 01:30:14 UTC
(
hide
)
Description:
Fix memory like and clear password on error.
Filename:
MIME Type:
Creator:
Bob Relyea
Created:
2014-02-14 01:30:14 UTC
Size:
541 bytes
patch
obsolete
>diff -up ./src/pam_pkcs11/pam_pkcs11.c.mem-leak ./src/pam_pkcs11/pam_pkcs11.c >--- ./src/pam_pkcs11/pam_pkcs11.c.mem-leak 2014-02-13 17:29:12.396372091 -0800 >+++ ./src/pam_pkcs11/pam_pkcs11.c 2014-02-13 17:29:24.527372087 -0800 >@@ -164,6 +164,9 @@ static int pam_get_pwd(pam_handle_t *pam > if ((nitem == PAM_AUTHTOK) || (nitem == PAM_OLDAUTHTOK)) { > rv = pam_set_item(pamh, nitem, *pwd); > if (rv != PAM_SUCCESS) >+ memset(*pwd, 0, strlen(*pwd)); >+ free(*pwd); >+ *pwd = NULL; > return rv; > } > return PAM_SUCCESS;
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 1065132
: 863040