From: Simon Dugas Date: Tue, 11 May 2021 14:41:32 +0000 (-0400) Subject: modbus: fix quantity and count calculation X-Git-Tag: suricata-7.0.0-beta1~1624 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2720fc2fba6f5f8ac65188e795385fb6c6cd267;p=thirdparty%2Fsuricata.git modbus: fix quantity and count calculation The [Modbus Spec S6.11](https://modbus.org/docs/Modbus_Application_Protocol_V1_1b.pdf) clearly states that the `count = quantity / 8` and not the other way around. This is fixed in sawp-0.5.0. --- diff --git a/rust/Cargo.toml.in b/rust/Cargo.toml.in index 234d5dc026..9681b6ac0c 100644 --- a/rust/Cargo.toml.in +++ b/rust/Cargo.toml.in @@ -33,8 +33,8 @@ widestring = "~0.4.3" flate2 = "~1.0.19" brotli = "~3.3.0" -sawp-modbus = "~0.4.0" -sawp = "~0.4.0" +sawp-modbus = "~0.5.0" +sawp = "~0.5.0" der-parser = "~4.0.2" kerberos-parser = "~0.5.0" ntp-parser = "~0.4.0"