Skip to content

Commit 7edc12b

Browse files
committed
Fix issue in logic expression.
Both operands in a logic OR expression where the same.
1 parent 5981759 commit 7edc12b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libyara/scan.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,8 @@ static int _yr_scan_verify_re_match(
722722

723723
if ((forward_matches == -1) &&
724724
(STRING_IS_WIDE(ac_match->string) &&
725-
!(STRING_IS_BASE64_WIDE(ac_match->string) || STRING_IS_BASE64_WIDE(ac_match->string))))
725+
!(STRING_IS_BASE64(ac_match->string) ||
726+
STRING_IS_BASE64_WIDE(ac_match->string))))
726727
{
727728
flags |= RE_FLAGS_WIDE;
728729
FAIL_ON_ERROR(exec(

0 commit comments

Comments
 (0)