Memory Labels Class: Correct bounds clamping in ProcessCODFile
This commit is contained in:
parent
04421079ea
commit
a7eb2e79e5
|
@ -208,10 +208,10 @@ void CMemoryLabel::ProcessCODFile(BYTE * File, DWORD FileLen)
|
|||
}
|
||||
}
|
||||
|
||||
if (Length > 40)
|
||||
{
|
||||
Length = 40;
|
||||
}
|
||||
// Stay within label array bounds
|
||||
if (Length > 39)
|
||||
Length = 39;
|
||||
|
||||
memcpy(Label,CurrentPos,Length);
|
||||
Label[Length] = '\0';
|
||||
|
||||
|
|
Loading…
Reference in New Issue