Skip to content

Commit

Permalink
chore: increase default max matches per pattern to 1.000.000.
Browse files Browse the repository at this point in the history
This is also the default value in YARA.
  • Loading branch information
plusvic committed Aug 16, 2023
1 parent 40ef687 commit 81c5b9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yara-x/src/scanner/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ pub struct Scanner<'r> {
}

impl<'r> Scanner<'r> {
const DEFAULT_MAX_MATCHES_PER_PATTERN: usize = 10_000;
const DEFAULT_MAX_MATCHES_PER_PATTERN: usize = 1_000_000;

/// Creates a new scanner.
pub fn new(rules: &'r Rules) -> Self {
Expand Down

0 comments on commit 81c5b9c

Please sign in to comment.