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 310476 Details for
Bug 453185
Not easily reproduceable crash in password change
[?]
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]
also avoid memory leaks
0001-slapi_pw_find_sv-expects-an-array-make-sure-we-ha.patch (text/plain), 1.70 KB, created by
Simo Sorce
on 2008-06-27 20:01:09 UTC
(
hide
)
Description:
also avoid memory leaks
Filename:
MIME Type:
Creator:
Simo Sorce
Created:
2008-06-27 20:01:09 UTC
Size:
1.70 KB
patch
obsolete
>>From 56a9569563b5dcc26a132d4ac91d940d34540a12 Mon Sep 17 00:00:00 2001 >From: Simo Sorce <ssorce@redhat.com> >Date: Tue, 24 Jun 2008 08:40:58 -0400 >Subject: [PATCH] slapi_pw_find_sv() expects an array, make sure we have a NULL terminated > one to avoid potential segfaults > Avoid leaking memory too. > >--- > .../ipa-pwd-extop/ipa_pwd_extop.c | 14 +++++++++----- > 1 files changed, 9 insertions(+), 5 deletions(-) > >diff --git a/ipa-server/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c b/ipa-server/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c >index 21e50db..c25d0f1 100644 >--- a/ipa-server/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c >+++ b/ipa-server/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c >@@ -1258,24 +1258,28 @@ static int ipapwd_CheckPolicy(struct ipapwd_data *data) > /* skip policy checks */ > slapi_entry_free(policy); > goto no_policy; >- } >+ } > > /* first of all check current password, if any */ > old_pw = slapi_entry_attr_get_charptr(data->target, "userPassword"); > if (old_pw) { >- Slapi_Value *cpw; >+ Slapi_Value *cpw[2] = {NULL, NULL}; > Slapi_Value *pw; > >- cpw = slapi_value_new_string(old_pw); >+ cpw[0] = slapi_value_new_string(old_pw); > pw = slapi_value_new_string(data->password); >- if (!cpw || !pw) { >+ if (!cpw[0] || !pw) { > slapi_log_error(SLAPI_LOG_PLUGIN, "ipa_pwd_extop", > "ipapwd_checkPassword: Out of Memory\n"); > slapi_entry_free(policy); >+ slapi_value_free(&cpw[0]); >+ slapi_value_free(&pw); > return LDAP_OPERATIONS_ERROR; > } > >- ret = slapi_pw_find_sv(&cpw, pw); >+ ret = slapi_pw_find_sv(cpw, pw); >+ slapi_value_free(&cpw[0]); >+ slapi_value_free(&pw); > > if (ret == 0) { > slapi_log_error(SLAPI_LOG_TRACE, "ipa_pwd_extop", >-- >1.5.5.1 >
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 453185
:
310466
|
310469
| 310476