Opened 16 years ago

Closed 16 years ago

#4028 closed Bug report (fixed)

Incorrect usages of memset function

Reported by: Dmytro Gorbunov Owned by:
Priority: normal Component: FileZilla Server
Keywords: memset Cc:
Component version: Operating system type: Windows
Operating system version:

Description

We've detected following issues in sources from https://filezilla.svn.sourceforge.net/svnroot/filezilla/FileZilla Server/trunk/...

  1. File: FileZilla Server/source/Interface/misc/ProcessorInfo.h:

247: MEMORYSTATUS memoryStatus;
248:
249: memset (&memoryStatus, sizeof (MEMORYSTATUS), 0);
250: memoryStatus.dwLength = sizeof (MEMORYSTATUS);

Line 249 should be
249: memset (&memoryStatus, 0, sizeof (MEMORYSTATUS));

  1. The same issue in File: FileZilla Server/source/misc/ProcessorInfo.h

Regards,
Dmytro Gorbunov
Leader of SaveSources team
http://savesources.com

Change History (1)

comment:1 by Tim Kosse, 16 years ago

Resolution: fixed
Status: newclosed

Thanks.

Note: See TracTickets for help on using tickets.