Opened 15 years ago

Closed 15 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:


We've detected following issues in sources from Server/trunk/...

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

247: MEMORYSTATUS memoryStatus;
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

Dmytro Gorbunov
Leader of SaveSources team

Change History (1)

comment:1 by Tim Kosse, 15 years ago

Resolution: fixed
Status: newclosed


Note: See TracTickets for help on using tickets.