Author: tfaber
Date: Tue Oct 20 08:30:14 2015
New Revision: 69627
URL:
http://svn.reactos.org/svn/reactos?rev=69627&view=rev
Log:
[TASKMGR]
- Fix potential stack buffer overflows. CID 1322094, 1322095
Modified:
trunk/reactos/base/applications/taskmgr/perfpage.c
Modified: trunk/reactos/base/applications/taskmgr/perfpage.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/taskmgr/…
==============================================================================
--- trunk/reactos/base/applications/taskmgr/perfpage.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/taskmgr/perfpage.c [iso-8859-1] Tue Oct 20 08:30:14
2015
@@ -371,11 +371,11 @@
StrFormatByteSizeW(CommitChargeTotal * 1024,
szChargeTotalFormat,
- sizeof(szChargeTotalFormat));
+ _countof(szChargeTotalFormat));
StrFormatByteSizeW(CommitChargeLimit * 1024,
szChargeLimitFormat,
- sizeof(szChargeLimitFormat));
+ _countof(szChargeLimitFormat));
if (!bInMenuLoop)
{