Fixed out of bound array access.
This commit is contained in:
parent
91353f00a8
commit
015754633d
@ -458,7 +458,7 @@ int cliprdr_temp_directory(CliprdrClientContext* context, CLIPRDR_TEMP_DIRECTORY
|
||||
if (length > 520)
|
||||
length = 520;
|
||||
|
||||
Stream_Write(s, tempDirectory->szTempDir, length * 2);
|
||||
Stream_Write(s, wszTempDir, length * 2);
|
||||
Stream_Zero(s, (520 - length) * 2);
|
||||
|
||||
free(wszTempDir);
|
||||
|
Loading…
x
Reference in New Issue
Block a user