Skip to content

Commit 881a0cb

Browse files
committed
issue: 4583806 Coverity var_deref_op fixes
Fix Coverity-reported var_deref_op warnings by adding macro-safe Coverity _Pragma() suppressions inside the SYSCALL wrapper to document intentional pointer dereferencing and eliminate false positives. Updated file: - src/core/sock/sock-redirect.h Signed-off-by: Omri Ritblat <[email protected]>
1 parent 3de7ce3 commit 881a0cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/sock/sock-redirect.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@
7474
#define VALID_SYSCALL(_func) ((orig_os_api._func) != nullptr)
7575
#define SYSCALL(_func, ...) \
7676
((VALID_SYSCALL(_func) ? (void)0 : get_orig_funcs()), \
77-
/* coverity[var_deref_op] */ \
78-
orig_os_api._func(__VA_ARGS__))
77+
COVERITY_VAR_DEREF_OP \
78+
orig_os_api._func(__VA_ARGS__))
7979
#define SYSCALL_ERRNO_UNSUPPORTED(_func, ...) \
8080
(VALID_SYSCALL(_func) ? orig_os_api._func(__VA_ARGS__) : ((errno = EOPNOTSUPP), -1))
8181
#define XLIO_CALL(_func, ...) _func(__VA_ARGS__)

0 commit comments

Comments
 (0)