mirror of
https://github.com/mikedilger/chorus.git
synced 2026-07-02 07:13:21 +00:00
bugfix in Filter delineate()
This commit is contained in:
parent
27a63495e5
commit
a92049fb52
@ -49,7 +49,7 @@ impl<'a> Filter<'a> {
|
||||
if input.len() < ARRAYS_OFFSET {
|
||||
return Err(ChorusError::EndOfInput.into());
|
||||
}
|
||||
let len = parse_u16!(input, 0) as usize;
|
||||
let len = parse_u32!(input, 0) as usize;
|
||||
if input.len() < len {
|
||||
return Err(ChorusError::EndOfInput.into());
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user