]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Pull request #3274: mime: stop setting the file_data buffer for raw non-file MIME...
authorTom Peters (thopeter) <thopeter@cisco.com>
Fri, 18 Feb 2022 21:05:37 +0000 (21:05 +0000)
committerTom Peters (thopeter) <thopeter@cisco.com>
Fri, 18 Feb 2022 21:05:37 +0000 (21:05 +0000)
Merge in SNORT/snort3 from ~KATHARVE/snort3:mime_file_data to master

Squashed commit of the following:

commit a71fc1cfe61fb6cbaa644c2dd238ff5641d63aa4
Author: Katura Harvey <katharve@cisco.com>
Date:   Tue Feb 15 14:45:15 2022 -0500

    mime: stop setting the file_data buffer for raw non-file MIME parts

src/mime/file_mime_process.cc

index 6f17500308e6bdfba127824adb2551749563523c..c31ab9098c8d4cbf926620590720b1886be2fec8 100644 (file)
@@ -540,11 +540,6 @@ const uint8_t* MimeSession::process_mime_data_paf(
          * in the body which seems more reasonable. */
     }
 
-    // FIXIT-L why is this being set?  we don't search file data until
-    // we set it again below after decoding.  can it be deleted?
-    if ( !is_http && decode_conf && (!decode_conf->is_ignore_data()))
-        set_file_data(start, (end - start));
-
     if (data_state == STATE_DATA_HEADER)
     {
         start = process_mime_header(p, start, end);