Commit 7a155d1
committed
issue: 4583806 Coverity var_deref_op and var_deref_model fixes
Fix Coverity-reported null pointer dereference warnings by adding
explicit null checks and Coverity suppression comments to document
intentional pointer dereferencing after validation, eliminating false
positives.
Changes:
- Refactored SYSCALL macro to use statement expression with explicit
if/else for clearer control flow to Coverity static analyzer
- Added suppression comment for dbrec pointer which is guaranteed valid
after successful xlio_ib_mlx5dv_init_obj() call
- Added suppression comment for p_iov pointer which is validated before
reaching OS transmit fallback path
Updated files:
- src/core/sock/sock-redirect.h
- src/core/ib/mlx5/ib_mlx5.cpp
- libxlio/src/core/ib/mlx5/ib_mlx5.cpp
- src/core/sock/sockinfo_udp.cpp
- libxlio/src/core/sock/sockinfo_udp.cpp
Signed-off-by: Omri Ritblat <[email protected]>1 parent 169f224 commit 7a155d1
File tree
3 files changed
+14
-5
lines changed- src/core
- config/descriptor_providers
- ib/mlx5
- sock
3 files changed
+14
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
225 | 228 | | |
226 | 229 | | |
227 | 230 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2187 | 2187 | | |
2188 | 2188 | | |
2189 | 2189 | | |
2190 | | - | |
| 2190 | + | |
| 2191 | + | |
| 2192 | + | |
| 2193 | + | |
| 2194 | + | |
| 2195 | + | |
2191 | 2196 | | |
2192 | 2197 | | |
2193 | 2198 | | |
| |||
0 commit comments