荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: Version (Who makes history and why), 信区: Program
标  题: Microsoft Knowledge Base Article Q311485(转寄)[转载]
发信站: 荔园晨风BBS站 (Sat Mar 15 17:51:54 2003), 站内信件

【 以下文字转载自 Version 的信箱 】
【 原文由 pcAngel(风过留枫) 所发表 】
发信人: tianlynn (什么侣移甙嗽愕?), 信区: Programming
标  题: Microsoft Knowledge Base Article Q311485
发信站: BBS 水木清华站 (Wed Jan  8 14:01:32 2003), 转信

A Program that Passes Invalid Screen Size Parameters Causes an Access Viola
tion
The information in this article applies to:
Microsoft Windows 2000 Server SP1
Microsoft Windows 2000 Server SP2
Microsoft Windows 2000 Advanced Server SP1
Microsoft Windows 2000 Advanced Server SP2
Microsoft Windows 2000 Professional SP1
Microsoft Windows 2000 Professional SP2
Microsoft Windows XP Home Edition
Microsoft Windows XP Professional
This article was previously published under Q311486
SYMPTOMS
The versions of Windows listed at the beginning of this article contain the
following vulnerability: When you run a local program that passes invalid pa
rameters that are smaller than the screen size, this causes an access violat
ion (AV). As a result, Windows stops responding (crashes).
Sample Code
The following uncompiled sample code is known to cause this behavior:
#include <stdio.h>
int main(void)
{
while(1)
printf("\t\t\b\b\b\b\b\b");
return 0;
}
CAUSE
This behavior occurs because Windows checks invalid parameters that are larg
er than the screen size, but does not currently check invalid parameters tha
t are smaller than the screen size.
RESOLUTION
Windows XP
To resolve this problem, obtain the latest service pack for Windows XP. For
additional information, click the following article number to view the artic
le in the Microsoft Knowledge Base:
322389 How to Obtain the Latest Windows XP Service Pack
The English-language version of this fix should have the following file attr
ibutes or later:
   Date         Time   Version      Size     File name
   ----------------------------------------------------
   02-Nov-2001  21:43  5.1.2600.19  272,384  Winsrv.dll
   02-Nov-2001  21:43  5.1.2600.19  272,384  Winsrv.dll
Windows 2000
To resolve this problem, obtain the latest service pack for Windows 2000. Fo
r additional information, click the following article number to view the art
icle in the Microsoft Knowledge Base:
260910 How to Obtain the Latest Windows 2000 Service Pack
The English-language version of this fix should have the following file attr
ibutes or later:
   Date         Time   Version        Size       File name
   ----------------------------------------------------------
   05-Nov-2001  18:57  5.0.2195.4572    222,480  Gdi32.dll
   05-Nov-2001  18:57  5.0.2195.4272    731,920  Kernel32.dll
   25-Jun-2001  18:17  3.10.0.103        47,808  User.exe
   05-Nov-2001  18:57  5.0.2195.4314    402,192  User32.dll
   05-Nov-2001  18:57  5.0.2195.4345    371,984  Userenv.dll
   27-Sep-2001  15:00  5.0.2195.4426  1,731,536  Win32k.sys
   30-Oct-2001  18:17  5.0.2195.4575    178,960  Winlogon.exe
   05-Nov-2001  18:58  5.0.2195.4553    243,472  Winsrv.dll
   05-Nov-2001  18:58  5.0.2195.4272    731,920  Kernel32.dll
   05-Nov-2001  18:58  5.0.2195.4426  1,731,536  Win32k.sys
   05-Nov-2001  18:58  5.0.2195.4553    243,472  Winsrv.dll
STATUS
Microsoft has confirmed that this is a problem in the Microsoft products tha
t are listed at the beginning of this article. This problem was first correc
ted in Microsoft Windows 2000 Service Pack 3 (SP3) and Microsoft Windows XP
Service Pack 1 (SP1).
MORE INFORMATION
This update causes Windows to check lower boundaries. The Winsrv.dll file is
 directly affected by this update, but the following files are included beca
use of dependency issues:
User.exe
User32.dll
Win32k.sys
Gdi32.dll
Userenv.dll
Kernel32.dll
Winlogon.exe

--

※ 来源:·BBS 水木清华站 smth.edu.cn·[FROM: 162.105.88.196]
--
※ 转载:·荔园晨风BBS站 bbs.szu.edu.cn·[FROM: 192.168.1.50]


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店