Skip to content
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

fix verified field in pe module with multiple signatures #1988

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

vthib
Copy link
Contributor

@vthib vthib commented Oct 12, 2023

Commit 1a85738 fixed one bug but introduced a new one. The pe.is_signed field is now properly set (true if any signature is valid), but the signatures[i].verified is now incorrectly set: instead of being set to whether this signature is verified, it is set to true if any previous signature is verified.

Unfortunately, there is no test file that is triggering this behavior. This would require having a signature that is invalid appearing after a signature that is valid.

I targetted master, but we probably want this fix in 4.4.0. I'm not sure how you handle this, do you want me to target 4.4.x?

Commit 1a85738 fixed one bug but introduced a new one. The
`pe.is_signed` field is now properly set (true if any signature is
valid), but the `signatures[i].verified` is now incorrectly set: instead
of being set to whether this signature is verified, it is set to
true if any previous signature is verified.

Unfortunately, there is no test file that is triggering this behavior.
This would require having a signature that is invalid appearing after a
signature that is valid.
@vthib vthib force-pushed the fix-verified-field-pe-module branch from d837c65 to 7f58d55 Compare November 15, 2023 16:09
@vthib
Copy link
Contributor Author

vthib commented Nov 15, 2023

@plusvic Do you have time to take a look at this as well as my other PRs? I'd love to be able to get those fixes in the next 4.4 release

@plusvic plusvic merged commit 4ad5c00 into VirusTotal:master Nov 17, 2023
10 checks passed
@vthib vthib deleted the fix-verified-field-pe-module branch November 17, 2023 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants