Skip to content

Commit 1abde50

Browse files
aparshin-inteligcbot
authored andcommitted
fix nullptr dereference when debug info is missing for some kernels
fix nullptr dereference when debug info is missing for some kernels
1 parent c5ce1c6 commit 1abde50

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

IGC/AdaptorOCL/OCL/sp/spp_g8.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ RETVAL CGen8OpenCLProgramBase::GetProgramDebugDataSize(size_t& totalDbgInfoBuffe
197197
totalDbgInfoBufferSize += sizeof(iOpenCL::SProgramDebugDataHeaderIGC);
198198
for (auto& data : m_KernelBinaries)
199199
{
200+
if (!data.dbgInfo.header)
201+
continue;
200202
totalDbgInfoBufferSize += (size_t)data.dbgInfo.header->Size() +
201203
(size_t)(data.dbgInfo.dbgInfoBufferSize +
202204
data.dbgInfo.extraAlignBytes);

0 commit comments

Comments
 (0)