]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
build 200
authorRuss Combs <rucombs@cisco.com>
Fri, 10 Jun 2016 12:26:21 +0000 (08:26 -0400)
committerRuss Combs <rucombs@cisco.com>
Fri, 10 Jun 2016 12:26:21 +0000 (08:26 -0400)
ChangeLog
src/flow/ha.cc
src/ips_options/sd_pattern_match.cc
src/main/build.h
src/utils/util.cc

index d3f4727e37b68d4b0cd7558336478a2ba196a23e..1e9f152e50b431441abb5dc8ebb272665c6bd2e6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+16/06/10 - build 200
+
+-- continued porting of dce_rpc - smb transaction processing
+-- tweaked autotools build foo
+-- add / update unit tests
+-- fix additional memory leaks
+-- fix compiler warnings
+-- fix static analysis issues
+-- fix handling of bpf file failures
+
 16/06/03 - build 199
 
 -- add new http_inspect alerts abusive content-length and transfer-encodings
index cab520278678f27ee15f2dfde1bfc1755c1536df..6714ab68cc43c810ae5d316e505bc594ef387c9a 100644 (file)
@@ -335,7 +335,7 @@ static void write_update_msg_client( FlowHAClient* client, Flow* flow, HAMessage
 static void write_update_msg_content(Flow* flow, HAMessage* msg)
 {
     assert(s_client_map);
-    
+
     for ( int i=0; i<s_handle_counter; i++ )
         if ( (i==SESSION_HA_CLIENT_INDEX) || flow->ha_state->check_pending(1<<i) )
             write_update_msg_client((*s_client_map)[i],flow, msg);
index c72afcbc82e10ca71fb703572264f619f05da69e..5443b482b610a83cb3215ffd3efeb13a546ea074 100644 (file)
@@ -73,7 +73,7 @@ void SdOptionData::ExpandBrackets()
     {
         if ( (bracket_index > pattern) && (*(bracket_index-1) == '\\') )
         {
-            // Ignore escaped brackets 
+            // Ignore escaped brackets
             bracket_index = strchr(bracket_index+1, '{');
             continue;
         }
@@ -145,11 +145,11 @@ bool SdOptionData::match(const uint8_t * const buf, uint16_t * const buf_index,
 
     while ( *buf_index < buflen && pattern[pattern_index] != '\0' && node_match )
     {
-        char const * const pc = &pattern[pattern_index]; 
+        char const * const pc = &pattern[pattern_index];
 
         if ( pc[0] == '\\' && pc[1] != '\0' )
         {
-match__rescan: 
+match__rescan:
             pattern_index++;
             switch ( pattern[pattern_index] )
             {
@@ -194,7 +194,7 @@ match__rescan:
                 // \b : match a numeric boundary
                 case 'b':
                     node_match = !isdigit((int)buf[*buf_index]);
-                    if ( !node_match && *buf_index == 0 
+                    if ( !node_match && *buf_index == 0
                       && pattern[pattern_index+1] != '\0'
                       && pattern[pattern_index+2] != '\0' )
                     {
@@ -232,12 +232,12 @@ match__rescan:
     {
         char const * const pc = &pattern[pattern_index];
 
-        // '\b' can match EOM 
+        // '\b' can match EOM
         if ( !(pc[0] == '\\' && pc[1] == 'b') )
         {
             if( (pc[0] == '\0') )
                 return true;
-                
+
             else
                 return false;
         }
index 40fd6712faa0c6356ff38bd9071d7dcd30c3e1f4..0a99536196db948a438dbb8690805a3883301ebf 100644 (file)
@@ -10,7 +10,7 @@
 //                                               //
 //-----------------------------------------------//
 
-#define BUILD "199"
+#define BUILD "200"
 
 #endif
 
index 8221afbd458dacee218f1b5acd8379628bd67fce..edb1c360d92ab5eb747ef6fe1ebec38ca2334240 100644 (file)
@@ -464,17 +464,16 @@ void CleanupProtoNames()
 std::string read_infile(const char* key, const char* fname)
 {
     int fd = open(fname, O_RDONLY);
-
     struct stat buf;
-    
+
     if (fstat(fd, &buf) < 0)
     {
         ParseError("can't stat %s: %s", fname, get_error(errno));
         return "";
     }
 
-    //check that its a regular file and not a directory or special file    
-    if (!S_ISREG(buf.st_mode) ) 
+    //check that its a regular file and not a directory or special file
+    if (!S_ISREG(buf.st_mode) )
     {
         ParseError("not a regular file: %s", fname);
         return "";
@@ -482,13 +481,13 @@ std::string read_infile(const char* key, const char* fname)
 
     std::string line;
     std::ifstream bpf_file(fname);
-  
+
     if (bpf_file.is_open())
     {
         std::stringstream file_content;
         file_content << bpf_file.rdbuf();
         line = file_content.str();
-        
+
         bpf_file.close();
     }
     else
@@ -497,7 +496,7 @@ std::string read_infile(const char* key, const char* fname)
        return "";      
     }
 
-    return(line);
+    return line;
 }
 
 /* Guaranteed to be '\0' terminated even if truncation occurs.