Skip to content

Commit 88a7fbe

Browse files
igcbotpratikashar
andauthored
Constrain name string length to be 256 as per spec. (#5)
Co-authored-by: Pratik J Ashar <[email protected]>
1 parent 3e65c30 commit 88a7fbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

visa/DebugInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ uint32_t KernelDebugInfo::getVarIndex(G4_Declare* dcl)
962962
template<class T>
963963
void emitDataName(const char* name, T& t)
964964
{
965-
auto length = strlen(name);
965+
auto length = (uint8_t)strlen(name);
966966
// Length
967967
insertData(&length, sizeof(uint8_t), t);
968968
// Actual name

0 commit comments

Comments
 (0)