dd9c76343a
Service (CVE-2024-37894) Resolves: RHEL-22594 - squid: vulnerable to a Denial of Service attack against Cache Manager error responses (CVE-2024-23638)
14 lines
585 B
Diff
14 lines
585 B
Diff
diff --git a/lib/libTrie/TrieNode.cc b/lib/libTrie/TrieNode.cc
|
|
index b379856..5d87279 100644
|
|
--- a/lib/libTrie/TrieNode.cc
|
|
+++ b/lib/libTrie/TrieNode.cc
|
|
@@ -32,7 +32,7 @@ TrieNode::add(char const *aString, size_t theLength, void *privatedata, TrieChar
|
|
/* We trust that privatedata and existant keys have already been checked */
|
|
|
|
if (theLength) {
|
|
- int index = transform ? (*transform)(*aString): *aString;
|
|
+ const unsigned char index = transform ? (*transform)(*aString): *aString;
|
|
|
|
if (!internal[index])
|
|
internal[index] = new TrieNode;
|