| Summary: | curl --capath memory leakage | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Kamil Dudka <kdudka> | ||||
| Component: | curl | Assignee: | Kamil Dudka <kdudka> | ||||
| Status: | CLOSED ERRATA | QA Contact: | BaseOS QE Security Team <qe-baseos-security> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 6.0 | CC: | emaldona, mhusnain, mvadkert, ovasik, prc, rcritten, rrelyea | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: |
libcurl leaked memory and eventually resulted in a failed NSS shutdown when more than one CA certificate was loaded. This is now fixed so that libcurl works as expected when more than one CA certificates is loaded.
|
Story Points: | --- | ||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2011-05-19 13:12:34 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
|
Description
Kamil Dudka
2011-01-19 12:51:54 UTC
Created attachment 474252 [details]
proposed fix
Rob, could you please review the attached patch?
Comment on attachment 474252 [details] proposed fix >@@ -91,8 +92,12 @@ typedef struct { > PRInt32 version; /* protocol version valid for this cipher */ > } cipher_s; > >-#define PK11_SETATTRS(x,id,v,l) (x)->type = (id); \ >- (x)->pValue=(v); (x)->ulValueLen = (l) >+#define PK11_SETATTRS(_attr, _idx, _type, _val, _len) do { \ >+ CK_ATTRIBUTE *ptr = (_attr) + ((_idx)++); \ >+ ptr->type = (_type); \ >+ ptr->pValue = (_val); \ >+ ptr->ulValueLen = (_len); \ >+} while (0); Oops, I left there an extra semicolon ^^^. Please ignore it. It's harmless anyway. Comment on attachment 474252 [details]
proposed fix
Ok, right, loading more than 1 CA would lead to leaks and failed NSS shutdown. This looks good.
Thanks for review. pushed upstream: https://github.com/bagder/curl/commit/dc0a716
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
New Contents:
libcurl leaked memory and eventually resulted in a failed NSS shutdown when more than one CA certificate was loaded. This is now fixed so that libcurl works as expected when more than one CA certificates is loaded.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-0573.html |