]> git.ipfire.org Git - thirdparty/suricata.git/commit
modbus: fix app-layer test cases
authorSimon Dugas <simon.dugas@cyber.gc.ca>
Thu, 11 Feb 2021 20:49:06 +0000 (15:49 -0500)
committerVictor Julien <victor@inliniac.net>
Tue, 4 May 2021 08:43:10 +0000 (10:43 +0200)
commit7c99fe3689d43858cd18524e1161f59cc306b803
treee94686becb1e4856c0645d87a30b06f766da290a
parentf629321de06043214e69a56d8259a1e781535293
modbus: fix app-layer test cases

invalidFunctionCode: make protocol id valid since we are only testing
the function code here.

readCoilsErrorRsp: changed to different invalid response code.

ModbusParserTest10: wrong length was passed to AppLayerParserParse.

ModbusParserTest11: allocate the entire buffer.
src/app-layer-modbus.c
src/detect-engine-modbus.c