Skip to content

Commit

Permalink
fix: If any signature is valid, the file is properly signed (#1936)
Browse files Browse the repository at this point in the history
  • Loading branch information
aliyunav committed Sep 15, 2023
1 parent e7eaeb5 commit 1a85738
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libyara/modules/pe/pe.c
Expand Up @@ -1757,7 +1757,7 @@ void _process_authenticode(
{
const Authenticode* authenticode = auth_array->signatures[i];

signature_valid = authenticode->verify_flags == AUTHENTICODE_VFY_VALID
signature_valid |= authenticode->verify_flags == AUTHENTICODE_VFY_VALID
? true
: false;

Expand Down

0 comments on commit 1a85738

Please sign in to comment.