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 685411 Details for
Bug 902958
Firefox crash when certificates in PIV smart cards are viewed in certificate manager
[?]
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]
Don't crash on bad certs.
coolkey-1.1.0-mem-over.patch (text/plain), 2.02 KB, created by
Bob Relyea
on 2013-01-22 19:56:11 UTC
(
hide
)
Description:
Don't crash on bad certs.
Filename:
MIME Type:
Creator:
Bob Relyea
Created:
2013-01-22 19:56:11 UTC
Size:
2.02 KB
patch
obsolete
>diff -up ./src/coolkey/object.cpp.mem_over ./src/coolkey/object.cpp >--- ./src/coolkey/object.cpp.mem_over 2013-01-21 14:01:17.627550000 -0800 >+++ ./src/coolkey/object.cpp 2013-01-21 14:08:57.231633000 -0800 >@@ -505,9 +505,15 @@ dataStart(const CKYByte *buf, unsigned i > unsigned char tag; > unsigned int used_length= 0; > >+ *data_length = 0; /* make sure data_length is zero on failure */ >+ > if(!buf) { > return NULL; > } >+ /* there must be at least 2 bytes */ >+ if (length < 2) { >+ return NULL; >+ } > > tag = buf[used_length++]; > >@@ -521,15 +527,22 @@ dataStart(const CKYByte *buf, unsigned i > if (*data_length&0x80) { > int len_count = *data_length & 0x7f; > >+ if (len_count+used_length > length) { >+ return NULL; >+ } >+ > *data_length = 0; > > while (len_count-- > 0) { > *data_length = (*data_length << 8) | buf[used_length++]; > } > } >+ /* paranoia, can't happen */ >+ if (length < used_length) { >+ return NULL; >+ } > > if (*data_length > (length-used_length) ) { >- *data_length = length-used_length; > return NULL; > } > if (includeTag) *data_length += used_length; >@@ -966,6 +979,7 @@ GetCN(const CKYByte *dn, unsigned int dn > > /* unwrap the set */ > name = dataStart(buf, buf_length, &name_length, false); >+ if (name == NULL) return SECFailure; > > /* advance to next set */ > buf_length -= (name-buf) + name_length; >@@ -973,9 +987,11 @@ GetCN(const CKYByte *dn, unsigned int dn > > /* unwrap the Sequence */ > name = dataStart(name, name_length, &name_length, false); >+ if (name == NULL) return SECFailure; > > /* unwrap the oid */ > oid = dataStart(name, name_length, &oid_length, false); >+ if (oid == NULL) return SECFailure; > > /* test the oid */ > if (oid_length != CN_LENGTH) { >@@ -991,6 +1007,7 @@ GetCN(const CKYByte *dn, unsigned int dn > > /* unwrap the CN */ > cn->data = dataStart(name, name_length, &cn->len, false); >+ if (cn->data == NULL) return SECFailure; > return SECSuccess; > } > return SECFailure;
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 902958
: 685411