We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7514d14 commit c77d3a1Copy full SHA for c77d3a1
test/common/level_zero_mocks.cpp
@@ -99,6 +99,9 @@ TestCreateMemoryAllocationProperties(uint32_t modifier) {
99
void MockedLevelZeroTestEnvironment::SetUp() {
100
const char *lib_name = getenv("UMF_ZE_LOADER_LIB_NAME");
101
ASSERT_NE(lib_name, nullptr);
102
+ if (lib_name == nullptr) {
103
+ return; // to avoid nullptr deref coverity issue
104
+ }
105
ASSERT_NE(lib_name[0], '\0');
106
107
lib_handle = utils_open_library(lib_name, 0);
0 commit comments