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 932577 Details for
Bug 1135370
USE_AFTER_FREE in source/common/usprep.cpp in function usprep_prepare()
[?]
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.
This a patch file for the bug freeing twice memory in source/common/usprep.cpp in ICU4c in version 53.1
usprep.patch (text/plain), 930 bytes, created by
rajnish kumar
on 2014-08-29 07:33:26 UTC
(
hide
)
Description:
This a patch file for the bug freeing twice memory in source/common/usprep.cpp in ICU4c in version 53.1
Filename:
MIME Type:
Creator:
rajnish kumar
Created:
2014-08-29 07:33:26 UTC
Size:
930 bytes
patch
obsolete
>diff -Naurp a/source/common/usprep.cpp b/source/common/usprep.cpp >--- a/source/common/usprep.cpp 2014-08-27 10:38:24.360821077 +0530 >+++ b/source/common/usprep.cpp 2014-08-27 10:38:38.696821312 +0530 >@@ -796,16 +796,23 @@ usprep_prepare( const UStringPrepProfi > } > > CLEANUP: >- if(b1!=b1Stack){ >- uprv_free(b1); >- b1=NULL; >- } >- >- if(b2!=b1Stack && b2!=b2Stack && b2!=b1 /* b1 should not be freed twice */){ >- uprv_free(b2); >- b2=NULL; >- } >- return u_terminateUChars(dest, destCapacity, b2Len, status); >+ if(b2==b1 && b1!=b1Stack){ >+ uprv_free(b1); >+ b1=NULL; >+ b2=NULL; >+ } >+ else >+ { >+ if(b1!=b1Stack){ >+ uprv_free(b1); >+ b1=NULL; >+ } >+ if(b2!=b1Stack && b2!=b2Stack && b2!=b1 /* b1 should not be freed twice */){ >+ uprv_free(b2); >+ b2=NULL; >+ } >+ } >+ return u_terminateUChars(dest, destCapacity, b2Len, status); > } > >
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 Raw
Actions:
View
Attachments on
bug 1135370
: 932577