Skip to content

Commit 1a85738

Browse files
authored
fix: If any signature is valid, the file is properly signed (#1936)
1 parent e7eaeb5 commit 1a85738

File tree

1 file changed

+1
-1
lines changed
  • libyara/modules/pe

1 file changed

+1
-1
lines changed

libyara/modules/pe/pe.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1757,7 +1757,7 @@ void _process_authenticode(
17571757
{
17581758
const Authenticode* authenticode = auth_array->signatures[i];
17591759

1760-
signature_valid = authenticode->verify_flags == AUTHENTICODE_VFY_VALID
1760+
signature_valid |= authenticode->verify_flags == AUTHENTICODE_VFY_VALID
17611761
? true
17621762
: false;
17631763

0 commit comments

Comments
 (0)