View Issue Details

IDProjectCategoryView StatusLast Update
0000672Far ManagerPanel.Infopublic2008-12-29 05:00
Reporteralexmitin Assigned ToDrKnS  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Platformx86OSWindowsOS VersionXP SP3
Fixed in Version2.0 
Summary0000672: Invalid values in the Information panel
DescriptionThe Information panel shows the invalid values for the memory usage.

There a two problems in the InfoList::DisplayObject() function:

void InfoList::DisplayObject()
{
...
  MEMORYSTATUSEX ms;
  GlobalMemoryStatusEx(&ms); <==[bug.1]==
  if (ms.dwMemoryLoad==0) <==[bug.2]==
    ms.dwMemoryLoad=100-ToPercent64(ms.ullAvailPhys+ms.ullAvailPageFile,ms.ullTotalPhys+ms.ullTotalPageFile);
  GotoXY(X1+2,Y1+9);
  PrintText(MInfoMemoryLoad);
...
}

1) bug.1: The GlobalMemoryStatusEx function is called without initializing ms.dwLength field. See http://msdn.microsoft.com/en-us/library/aa366770(VS.85).aspx

2) bug.2: The result of the function GlobalMemoryStatusEx is not checked before using the ms. The function may return FALSE in case of failure.
See the following link for more information:
http://msdn.microsoft.com/en-us/library/aa366589(VS.85).aspx
TagsNo tags attached.
Build667

Activities

DrKnS

2008-12-19 07:30

administrator   bugnote:0002211

667

alexmitin

2008-12-28 22:41

reporter   bugnote:0002268

Verified in 710.

Issue History

Date Modified Username Field Change
2008-12-19 02:30 alexmitin New Issue
2008-12-19 07:17 DrKnS Status new => assigned
2008-12-19 07:17 DrKnS Assigned To => DrKnS
2008-12-19 07:30 DrKnS Note Added: 0002211
2008-12-19 07:30 DrKnS Status assigned => feedback
2008-12-28 22:41 alexmitin Note Added: 0002268
2008-12-28 22:41 alexmitin Status feedback => resolved
2008-12-28 22:41 alexmitin Resolution open => fixed
2008-12-29 05:00 DrKnS Build => 667
2008-12-29 05:00 DrKnS Status resolved => closed
2008-12-29 05:00 DrKnS Fixed in Version => 2.0