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 831933 Details for
Bug 1036830
CVE-2013-6420 php: memory corruption in openssl_x509_parse()
[?]
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
openssl.c.patch (text/plain), 1.20 KB, created by
Huzaifa S. Sidhpurwala
on 2013-12-03 07:39:13 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Huzaifa S. Sidhpurwala
Created:
2013-12-03 07:39:13 UTC
Size:
1.20 KB
patch
obsolete
>diff -ura xxx/php-src/ext/openssl/openssl.c php-src/ext/openssl/openssl.c >--- xxx/php-src/ext/openssl/openssl.c 2013-11-28 13:03:15.000000000 +0100 >+++ php-src/ext/openssl/openssl.c 2013-11-28 12:57:36.000000000 +0100 >@@ -688,18 +688,28 @@ > char * thestr; > long gmadjust = 0; > >- if (timestr->length < 13) { >+ if (ASN1_STRING_type(timestr) != V_ASN1_UTCTIME) { >+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "illegal ASN1 data type for timestamp"); >+ return (time_t)-1; >+ } >+ >+ if (ASN1_STRING_length(timestr) != strlen(ASN1_STRING_data(timestr))) { >+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "illegal length in timestamp"); >+ return (time_t)-1; >+ } >+ >+ if (ASN1_STRING_length(timestr) < 13) { > php_error_docref(NULL TSRMLS_CC, E_WARNING, "extension author too lazy to parse %s correctly", timestr->data); > return (time_t)-1; > } > >- strbuf = estrdup((char *)timestr->data); >+ strbuf = estrdup((char *)ASN1_STRING_data(timestr)); > > memset(&thetime, 0, sizeof(thetime)); > > /* we work backwards so that we can use atoi more easily */ > >- thestr = strbuf + timestr->length - 3; >+ thestr = strbuf + ASN1_STRING_length(timestr) - 3; > > thetime.tm_sec = atoi(thestr); > *thestr = '\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 1036830
: 831933