You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2020/06/16 21:33:59 UTC

[trafficserver] branch 9.0.x updated: Fix compiler issue with ICC 19.1

This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 1ee1c0c  Fix compiler issue with ICC 19.1
1ee1c0c is described below

commit 1ee1c0c4f09db7b387c81b0c75fa985b4580662f
Author: Unknown <dr...@live.com>
AuthorDate: Fri Jun 12 15:06:30 2020 -0500

    Fix compiler issue with ICC 19.1
    
    Current drop of these compiler with core dump the compiler on this line. This fixes the issues. The compiler teams have been notified and claim it will be fixed in upcoming drop
    
    (cherry picked from commit 538ad5dc2402dde4f98a237fddcb44dfed09b343)
---
 proxy/hdrs/MIME.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/proxy/hdrs/MIME.cc b/proxy/hdrs/MIME.cc
index 75cab70..a3024dc 100644
--- a/proxy/hdrs/MIME.cc
+++ b/proxy/hdrs/MIME.cc
@@ -2383,7 +2383,7 @@ MIMEScanner::get(TextView &input, TextView &output, bool &output_shares_input, b
       } else {
         // This really should be an error (spec doesn't permit lone CR) but the regression tests
         // require it.
-        this->append({&RAW_CR, 1});
+        this->append(TextView(&RAW_CR, 1)); // This is to fix a core dump of the icc 19.1 compiler when {&RAW_CR, 1} is used
         m_state = MIME_PARSE_INSIDE;
       }
       break;