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 2023/09/25 13:54:00 UTC
[trafficserver] branch master updated: Coverity 1518592: Uninitialized pointer field (#10510)
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 ce3688a87e Coverity 1518592: Uninitialized pointer field (#10510)
ce3688a87e is described below
commit ce3688a87e8a38e3ea9945ecc92017cfe7d2639a
Author: Bryan Call <bc...@apache.org>
AuthorDate: Mon Sep 25 06:53:54 2023 -0700
Coverity 1518592: Uninitialized pointer field (#10510)
Some uninitialized pointers in cachekey plugin class CacheKey
---
plugins/cachekey/cachekey.h | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/plugins/cachekey/cachekey.h b/plugins/cachekey/cachekey.h
index 5dea72fecf..1f7331ad70 100644
--- a/plugins/cachekey/cachekey.h
+++ b/plugins/cachekey/cachekey.h
@@ -80,12 +80,12 @@ private:
void (*fun)(const ConfigHeaders &config, const String &name_s, const String &value_s, T &captures));
/* Information from the request */
- TSHttpTxn _txn; /**< @brief transaction handle */
- TSMBuffer _buf; /**< @brief marshal buffer */
- TSMLoc _url; /**< @brief URI handle */
- TSMLoc _hdrs; /**< @brief headers handle */
- bool _valid = false; /**< @brief shows if the constructor discovered the input correctly */
- bool _remap = false; /**< @brief shows if the input URI was from remap info */
+ TSHttpTxn _txn = nullptr; /**< @brief transaction handle */
+ TSMBuffer _buf = nullptr; /**< @brief marshal buffer */
+ TSMLoc _url = nullptr; /**< @brief URI handle */
+ TSMLoc _hdrs = nullptr; /**< @brief headers handle */
+ bool _valid = false; /**< @brief shows if the constructor discovered the input correctly */
+ bool _remap = false; /**< @brief shows if the input URI was from remap info */
String _key; /**< @brief cache key */
String _separator; /**< @brief a separator used to separate the cache key elements extracted from the URI */