Skip to content

Commit 1f5fcfa

Browse files
committed
issue: 4583806 Coverity FORWARD_NULL fixes
Add Coverity suppression comments for repeated FORWARD_NULL false positives. Coverity reported multiple potential null dereferences in syscall-related macros. Added `/* coverity[var_deref_op] */` to suppress these false positives. No functional changes. Signed-off-by: Omri Ritblat <[email protected]>
1 parent b06987a commit 1f5fcfa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core/sock/sock-redirect.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@
7373
#define XLIO_SYMBOL(_func) _func
7474
#define VALID_SYSCALL(_func) ((orig_os_api._func) != nullptr)
7575
#define SYSCALL(_func, ...) \
76-
((VALID_SYSCALL(_func) ? (void)0 : get_orig_funcs()), orig_os_api._func(__VA_ARGS__))
76+
((VALID_SYSCALL(_func) ? (void)0 : get_orig_funcs()),
77+
/* coverity[var_deref_op] */
78+
orig_os_api._func(__VA_ARGS__))
7779
#define SYSCALL_ERRNO_UNSUPPORTED(_func, ...) \
7880
(VALID_SYSCALL(_func) ? orig_os_api._func(__VA_ARGS__) : ((errno = EOPNOTSUPP), -1))
7981
#define XLIO_CALL(_func, ...) _func(__VA_ARGS__)

0 commit comments

Comments
 (0)