Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Bad logic in src/logs/Cert::ExtensionStructure() #120

Closed
pphaneuf opened this issue Sep 2, 2014 · 3 comments
Closed

Bad logic in src/logs/Cert::ExtensionStructure() #120

pphaneuf opened this issue Sep 2, 2014 · 3 comments
Assignees

Comments

@pphaneuf
Copy link
Contributor

pphaneuf commented Sep 2, 2014

No description provided.

@pphaneuf
Copy link
Contributor Author

pphaneuf commented Sep 2, 2014

Relevant code:

*ext_struct = X509_get_ext_d2i(x509_, extension_nid, &crit, NULL);

if (ext_struct == NULL) {
if (crit != -1) {
LOG(WARNING) << "Corrupt extension data";

The check "ext_struct == NULL" is invalid. (If it is NULL, the previous line would segfault.) Presumably this should be "*ext_struct == NULL".

What version of the product are you using? On what operating system?

Latest code at https://code.google.com/p/certificate-transparency/source/browse/src/log/cert.cc

@pphaneuf
Copy link
Contributor Author

pphaneuf commented Sep 2, 2014

The fix is out for review in https://codereview.appspot.com/68190045

@pphaneuf
Copy link
Contributor Author

pphaneuf commented Sep 2, 2014

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants