Skip to content

Commit 44ec8f6

Browse files
author
nieka
committed
fix possible buffer overflow
1 parent d3472cd commit 44ec8f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

official/coolplayer/CPI_Playlist.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,7 @@ void CPL_AddFile(CP_HPLAYLIST hPlaylist, const char* pcFilename)
12201220
|| iCharIDX == internetbuffer.dwBufferLength)
12211221
&& iLastLineStartIDX < iCharIDX)
12221222
{
1223-
char cBuffer[512];
1223+
char cBuffer[513];
12241224

12251225
// Is there a file on this line (strip whitespace from start)
12261226

@@ -1271,7 +1271,7 @@ void CPL_AddFile(CP_HPLAYLIST hPlaylist, const char* pcFilename)
12711271
|| iCharIDX == dwFileSize)
12721272
&& iLastLineStartIDX < iCharIDX)
12731273
{
1274-
char cBuffer[512];
1274+
char cBuffer[513];
12751275

12761276
// Is there a file on this line (strip whitespace from start)
12771277

0 commit comments

Comments
 (0)