Ticket #4028 (closed Bug report: fixed)

Opened 22 months ago

Last modified 19 months ago

Incorrect usages of memset function

Reported by: gdm Owned by:
Priority: normal Component: FileZilla Server
Keywords: memset Cc:
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));

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

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

Change History

Changed 19 months ago by codesquid

  • status changed from new to closed
  • resolution set to fixed

Thanks.

Note: See TracTickets for help on using tickets.