mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Unstuffing pattern length of zero should never match.
This commit is contained in:
parent
05badaddda
commit
a00fcbaa8f
@ -50,7 +50,8 @@ public:
|
||||
const uint32_t pattern,
|
||||
const size_t length
|
||||
) {
|
||||
match = pattern;
|
||||
// Ensure that length=0 (unstuffing disabled) never matches.
|
||||
match = length ? pattern : 1;
|
||||
mask = (1U << length) - 1;
|
||||
reset();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user