We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21f134c commit 98c215bCopy full SHA for 98c215b
bmatcher-core/src/matcher.rs
@@ -48,7 +48,11 @@ impl<'a> BinaryMatcher<'a> {
48
&self.pattern.byte_sequence()[seq_start as usize..seq_end as usize];
49
let actual_bytes = self.target.subrange(data_cursor, expected_bytes.len())?;
50
51
- if expected_bytes != actual_bytes {
+ if expected_bytes
52
+ .iter()
53
+ .zip(actual_bytes.iter())
54
+ .any(|(expected, data)| *expected != *data)
55
+ {
56
return None;
57
}
58
0 commit comments