trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bc...@apache.org
Subject [trafficserver] branch master updated: clang analyzer: suppress nullptr derefence report in mime_hdr_sanity_check
Date Fri, 17 May 2019 16:36:09 GMT
This is an automated email from the ASF dual-hosted git repository.

bcall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 2f256e5  clang analyzer: suppress nullptr derefence report in mime_hdr_sanity_check
2f256e5 is described below

commit 2f256e55dc8b9406eb1eb9eaee14ff7b91213ff0
Author: Alan M. Carroll <amc@apache.org>
AuthorDate: Fri May 17 08:37:39 2019 -0500

    clang analyzer: suppress nullptr derefence report in mime_hdr_sanity_check
---
 proxy/hdrs/MIME.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/proxy/hdrs/MIME.cc b/proxy/hdrs/MIME.cc
index 7033b7e..e86ef9c 100644
--- a/proxy/hdrs/MIME.cc
+++ b/proxy/hdrs/MIME.cc
@@ -559,6 +559,8 @@ mime_hdr_sanity_check(MIMEHdrImpl *mh)
   uint32_t slot_index, index;
   uint64_t masksum;
 
+  ink_assert(mh != nullptr);
+
   masksum     = 0;
   slot_index  = 0;
   last_fblock = nullptr;


Mime
View raw message