You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bc...@apache.org on 2019/05/17 16:36:09 UTC
[trafficserver] branch master updated: clang analyzer: suppress
nullptr derefence report in mime_hdr_sanity_check
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 <am...@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;