]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #1598 in SNORT/snort3 from ~MIREDDEN/snort3:port_scan_memcap to...
authorTom Peters (thopeter) <thopeter@cisco.com>
Mon, 6 May 2019 20:54:33 +0000 (16:54 -0400)
committerTom Peters (thopeter) <thopeter@cisco.com>
Mon, 6 May 2019 20:54:33 +0000 (16:54 -0400)
Squashed commit of the following:

commit 300ad4844bc61bfacbb746ce036018ae211b7777
Author: Mike Redden <miredden@cisco.com>
Date:   Mon May 6 13:46:13 2019 -0400

    port_scan: Change minimum memcap value to 1024 to avoid divide by zero crash

src/network_inspectors/port_scan/ps_module.cc

index f7ff05edb62c6cca5d69cf4172ca71cdd3f5e4b7..9f49d128e42e0e8fe90275bc37ba6e53ea3bb9a7 100644 (file)
@@ -59,7 +59,7 @@ static const Parameter scan_params[] =
 
 static const Parameter ps_params[] =
 {
-    { "memcap", Parameter::PT_INT, "1:maxSZ", "1048576",
+    { "memcap", Parameter::PT_INT, "1024:maxSZ", "1048576",
       "maximum tracker memory in bytes" },
 
     { "protos", Parameter::PT_MULTI, protos, "all",