-
Notifications
You must be signed in to change notification settings - Fork 944
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fileinfo crashes when verifying digital signature of attached PE files #87
Labels
Comments
s3rvac
added a commit
that referenced
this issue
Mar 17, 2018
…igner (#87). In #87, a fileinfo crash is reported when verifying the digital signature of attached PE files. What all the attached files have in common is that we are unable to find a signer or counter-signer for them and p7->length is 0. As the following comment in pe_format.cpp suggests, there is no point of continuing in such a case: // If we have no signer and countersigner, there must be something really bad if(!signerCert && !counterSignerCert) { BIO_free(bio); return; } Thus, move the signature verification AFTER the check that we have found a signer or a counter-signer. This fixes the signature-verifying crashes for all the files attached to #87.
This was referenced Mar 17, 2018
s3rvac
added a commit
to avast/retdec-regression-tests
that referenced
this issue
Mar 17, 2018
metthal
added a commit
to avast/retdec-regression-tests
that referenced
this issue
Mar 17, 2018
…en-verifying-signatures Add a test for avast/retdec#87
Fixed by PR #249 (commit 168d23e). A regression test was added in avast/retdec-regression-tests@ce189d6. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
fileinfo
crashes when verifying digital signature of attached PE files.Input
where
FILE
is any of the PE files below:Output
Expected output
fileinfo
does not crash when analyzing the files above.Output from valgrind
Configuration
master
)The text was updated successfully, but these errors were encountered: