From 1a85738e9af3c77acf035d0be4fe432e476bf82e Mon Sep 17 00:00:00 2001 From: aliyunav <90828182+aliyunav@users.noreply.github.com> Date: Fri, 15 Sep 2023 16:49:01 +0800 Subject: [PATCH] fix: If any signature is valid, the file is properly signed (#1936) --- libyara/modules/pe/pe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libyara/modules/pe/pe.c b/libyara/modules/pe/pe.c index 84b6869db9..a9c96d9c36 100644 --- a/libyara/modules/pe/pe.c +++ b/libyara/modules/pe/pe.c @@ -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;