Skip to content

Commit

Permalink
fix: If any signature is valid, the file is properly signed
Browse files Browse the repository at this point in the history
  • Loading branch information
aliyunav committed Jul 24, 2023
1 parent 95dafbd commit a53e330
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libyara/modules/pe/pe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1703,7 +1703,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 a53e330

Please sign in to comment.