Skip to content

Commit d1a8d65

Browse files
authored
[CORE] Prevent using uninitialized memory 'listline' in Cftp::FindFile() (#1144)
1 parent bbdfa50 commit d1a8d65

File tree

1 file changed

+1
-1
lines changed
  • Core/Libraries/Source/WWVegas/WWDownload

1 file changed

+1
-1
lines changed

Core/Libraries/Source/WWVegas/WWDownload/FTP.CPP

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ HRESULT Cftp::LogoffFromServer( void )
659659
HRESULT Cftp::FindFile( LPCSTR szRemoteFileName, int * piSize )
660660
{
661661
char command[ 256 ];
662-
static char listline[ 256 ];
662+
static char listline[ 256 ] = {0};
663663

664664
int i, iReply;
665665
char ext[ 10 ];

0 commit comments

Comments
 (0)