Skip to content

Commit be52fb7

Browse files
pratikasharigcbot
authored andcommitted
Constrain name string length to be 256 as per spec. (#5)
1 parent a47ef82 commit be52fb7

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)