]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #286 in SNORT/snort3 from crc/188 to master
authorRuss Combs (rucombs) <rucombs@cisco.com>
Tue, 23 Feb 2016 18:00:22 +0000 (13:00 -0500)
committerRuss Combs (rucombs) <rucombs@cisco.com>
Tue, 23 Feb 2016 18:00:22 +0000 (13:00 -0500)
Squashed commit of the following:

commit 72b2a46bfb6860e8323d3a2846b0f72727154ec3
Author: Russ Combs <rucombs@cisco.com>
Date:   Tue Feb 23 09:40:17 2016 -0500

    unsanitary address fixes

commit e8ce6491f4567fd5094b1427eb587ae2d360396b
Author: Russ Combs <rucombs@cisco.com>
Date:   Mon Feb 22 16:48:31 2016 -0500

    build 188

ChangeLog
src/ips_options/ips_flowbits.cc
src/main/build.h
src/service_inspectors/http_inspect/hi_server_norm.cc
src/stream/flush_bucket.cc

index ce2b9914f80f6b81b907adacb09f1920c5f67bad..eb86db357f6541525e02cd9ceac55c14a7eb60ce 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+16/02/22 - build 188
+
+-- added delete/delete[] replacements for nothrow overload
+   thanks to Ramya Potluri for reporting the issue
+-- fixed a detection option comparison bug which wasted time and space
+-- disable perf_monitor by default since the reporting interval should be set
+-- memory manager updates
+-- valgrind and unsanitary address fixes
+-- snort2lua updates for dce2
+-- build issue fix - make non-GNU strerror_r() the default case
+-- packet latency updates
+-- perfmon updates
+
 16/02/12 - build 187
 
 -- file capture added - initial version writes from packet thread
index 7d09718c88aaed37ead272b2cc17b846d095ce81..91af558384788112a755ad058425e225cd4788b3 100644 (file)
@@ -235,19 +235,16 @@ bool FlowBitsOption::operator==(const IpsOption& ips) const
         return false;
 
     FlowBitsOption& rhs = (FlowBitsOption&)ips;
-    FLOWBITS_OP* left = (FLOWBITS_OP*)&config;
-    FLOWBITS_OP* right = (FLOWBITS_OP*)&rhs.config;
-    int i;
 
-    if ((left->num_ids != right->num_ids)||
-        (left->eval != right->eval)||
-        (left->type != right->type)||
-        (left->group_id != right->group_id))
+    if ( (config->num_ids != rhs.config->num_ids) or
+        (config->eval != rhs.config->eval) or
+        (config->type != rhs.config->type) or
+        (config->group_id != rhs.config->group_id) )
         return false;
 
-    for (i = 0; i < left->num_ids; i++)
+    for ( int i = 0; i < config->num_ids; i++ )
     {
-        if (left->ids[i] != right->ids[i])
+        if (config->ids[i] != rhs.config->ids[i])
             return false;
     }
 
index 7c4c71e3b41c5ba45811e4bf81414c860403635a..29726808974b6355ea48b06e03334a8dcbf72e37 100644 (file)
@@ -10,7 +10,7 @@
 //                                               //
 //-----------------------------------------------//
 
-#define BUILD "187"
+#define BUILD "188"
 
 #endif
 
index 2fd45f7c7fec0eb0125b42db2aa3ff0f3280cc4c..aede850205e394e07d79afd3df4e8a519bf165d6 100644 (file)
@@ -290,6 +290,7 @@ int hi_server_norm(HI_SESSION* session, HttpSessionData* hsd)
 
                 if (angle_bracket > js_start)
                 {
+                    hi_current_search = &hi_html_search[0];
                     script_found = hi_htmltype_search_mpse->find(
                         (const char*)js_start, (angle_bracket-js_start), HI_SearchStrFound);
 
index ef45a8efb169af72d3f0f4d9d3ebe592c9c516a0..61fc6eff24d20ff10ea54b22be67317232536c38 100644 (file)
@@ -90,9 +90,10 @@ StaticFlushBucket::StaticFlushBucket()
 
 uint16_t StaticFlushBucket::get_next()
 {
-    uint16_t fp = flush_points[idx];
-    idx = (idx == sizeof(flush_points)) ? 0 : idx + 1;
-    return fp;
+    if ( ++idx >= RAND_FLUSH_POINTS )
+        idx = 0;
+
+    return flush_points[idx];
 }
 
 RandomFlushBucket::RandomFlushBucket()