]> git.ipfire.org Git - thirdparty/suricata.git/commit
smtp: null terminate before calling strtoul
authorPhilippe Antoine <contact@catenacyber.fr>
Thu, 22 Apr 2021 08:28:15 +0000 (10:28 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 25 Jun 2021 15:11:00 +0000 (17:11 +0200)
commit475ec56e1bd85d380499723c0d77e6b0bee10630
tree6036159ea4bef867fbaf02f21620e7aa082d3bdc
parent54ebee6f516f983a21d952ec6cf4292ed8ba9d8d
smtp: null terminate before calling strtoul

by copying in a temporary buffer
as is done in ByteExtractString

(cherry picked from commit 33fa7ab5969d3fc5ca088c003bd4dbfe76d77b6b)
src/app-layer-smtp.c