Commit 2747c99
authored
Fix Coverity UNINIT issues (#12842)
* Fix uninitialized DiagsConfigState in reconfigure_diags
Value-initialize DiagsConfigState to ensure the outputs array
members are initialized to false before use. This fixes Coverity
CID 1497238 (UNINIT).
* Fix uninitialized ParsedValue in ParsedConfigCache::parse
Explicitly value-initialize ParsedValue to ensure the variant member
is properly initialized. This fixes Coverity CID 1644237 (UNINIT).
* Fix uninitialized TLSClientHelloSummary in test_ja4
Value-initialize TLSClientHelloSummary to ensure all members are
properly initialized before use. This fixes Coverity CID 1644228 (UNINIT).
* Fix uninitialized IPRange in background_fetch and cache_fill plugins
The condition for parsing Client-IP was inverted - it should load the
IP range when the value is NOT a single '*' character. With the old
logic, single-character non-'*' values would skip loading, leaving
the IPRange uninitialized.
This fixes Coverity CID 1533658 (UNINIT).1 parent 1796051 commit 2747c99
5 files changed
Lines changed: 5 additions & 5 deletions
File tree
- plugins
- background_fetch
- experimental
- cache_fill
- ja4_fingerprint
- src/proxy
- http
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
745 | 745 | | |
746 | 746 | | |
747 | 747 | | |
748 | | - | |
| 748 | + | |
749 | 749 | | |
750 | 750 | | |
751 | 751 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments