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 1dea393 Skip compressible content type check with null strings. 1dea393 is described below commit 1dea393a37f31061cd4861ee81ed5aa0eda91628 Author: David Calavera <david.calav...@gmail.com> AuthorDate: Sun Mar 29 13:30:01 2020 -0700 Skip compressible content type check with null strings. Signed-off-by: David Calavera <david.calav...@gmail.com> (cherry picked from commit 3181f686e7ce1f8ca903dd5eec1136968f8024b4) --- plugins/compress/configuration.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/compress/configuration.cc b/plugins/compress/configuration.cc index a8afd3f..67ced83 100644 --- a/plugins/compress/configuration.cc +++ b/plugins/compress/configuration.cc @@ -204,7 +204,10 @@ HostConfiguration::is_content_type_compressible(const char *content_type, int co for (StringContainer::iterator it = compressible_content_types_.begin(); it != compressible_content_types_.end(); ++it) { const char *match_string = it->c_str(); - bool exclude = match_string[0] == '!'; + if (match_string == nullptr) { + continue; + } + bool exclude = match_string[0] == '!'; if (exclude) { ++match_string; // skip '!'