From a92049fb521697faab0bf108291367fcd137efd2 Mon Sep 17 00:00:00 2001 From: Mike Dilger Date: Mon, 15 Apr 2024 09:41:34 +1200 Subject: [PATCH] bugfix in Filter delineate() --- chorus-lib/src/types/filter/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chorus-lib/src/types/filter/mod.rs b/chorus-lib/src/types/filter/mod.rs index 3434019..6daf8f3 100644 --- a/chorus-lib/src/types/filter/mod.rs +++ b/chorus-lib/src/types/filter/mod.rs @@ -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()); }