Skip to content

Fix gcc12 build: out of bounds warning #97

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Source/GmmLib/ULT/GmmMultiAdapterULT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ void MACommonULT::UnLoadGmmDll(uint32_t AdapterIdx, uint32_t CountIdx)

void MACommonULT::GmmInitModule(uint32_t AdapterIdx, uint32_t CountIdx)
{
ASSERT_TRUE(AdapterIdx < MAX_NUM_ADAPTERS);
GMM_STATUS Status = GMM_SUCCESS;
ADAPTER_BDF AdapterBDF = GetAdapterBDF(AdapterIdx);
GfxPlatform[AdapterIdx][CountIdx].eProductFamily = GetProductFamily(AdapterIdx);
Expand Down
1 change: 1 addition & 0 deletions Source/GmmLib/ULT/GmmResourceULT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3331,6 +3331,7 @@ TEST_F(CTestResource, TestPlanar2D_IMC4)
EXPECT_EQ(YHeight, ResourceInfo->GetPlanarYOffset(GMM_PLANE_U));
EXPECT_EQ(YHeight, ResourceInfo->GetPlanarYOffset(GMM_PLANE_V));
}
pGmmULTClientContext->DestroyResInfoObject(ResourceInfo);
}
}

Expand Down