Skip to content

Commit

Permalink
add to detect/byte_extract: Move keyword_parser to Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
jlucovsky committed Mar 13, 2024
1 parent 6767779 commit d7d25cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/src/detect/byte_extract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ fn parse_byteextract(input: &str) -> IResult<&str, DetectByteExtractData, RulePa
.parse::<u16>()
.map_err(|_| make_error(format!("invalid multiplier value: {}", val)))?;
if byte_extract.multiplier_value == 0
|| byte_extract.multiplier_value > u16::MAX.into()
|| byte_extract.multiplier_value > u16::MAX
{
return Err(make_error(format!(
"invalid multiplier value: must be between 0 and {}: {}",
Expand Down

0 comments on commit d7d25cc

Please sign in to comment.