]> git.ipfire.org Git - people/ms/suricata.git/commit
dnp3: fix int warnings
authorPhilippe Antoine <contact@catenacyber.fr>
Mon, 22 Nov 2021 08:13:54 +0000 (09:13 +0100)
committerVictor Julien <vjulien@oisf.net>
Wed, 24 Nov 2021 07:07:31 +0000 (08:07 +0100)
commit86b5c81ea2606de66bf08b00fdfb8ec0735e7df4
tree5354501ff9dcfd9bf6554f1478cd9924c71f3fad
parent53fc70a9a73cd157ed8235f6a73a8752f8f1396a
dnp3: fix int warnings

There is a hack to know the type of an integer
and do an explicit cast in the python script
generating the C file

Also extends some bounds check against negative values
scripts/dnp3-gen/dnp3-gen.py
src/app-layer-dnp3-objects.c
src/app-layer-dnp3.c