Microsoft KB Archive/327206

= FIX: An Access Violation Occurs in Microsoft XML Parser 3.0 When You Use Long Attribute Values =

Article ID: 327206

Article Last Modified on 11/15/2007

-

APPLIES TO


 * Microsoft XML Parser 3.0
 * Microsoft XML Parser 3.0 Service Pack 1
 * Microsoft XML Parser 3.0 Service Pack 2

-



This article was previously published under Q327206



SYMPTOMS
An access violation may occur in the Microsoft XML (MSXML) 3.0 parser when you format XML with long attribute values.



CAUSE
The IXMLNodeFactory interface reports the size of the attribute list by using a USHORT argument. The access violation occurs because the USHORT argument overflows when the attribute values are too long.



RESOLUTION
A supported hotfix is now available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next service pack that contains this hotfix.

To resolve this problem, submit a request to Microsoft Online Customer Services to obtain the hotfix. To submit an online request to obtain the hotfix, visit the following Microsoft Web site:

http://go.microsoft.com/?linkid=6294451

Note If additional issues occur or any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. To create a separate service request, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

The English version of this fix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.   Date        Version       Size       File name --  8-Jan-2002  8.20.9816.0   1,120,768  Msxml3.dll



WORKAROUND
To work around this issue, use MSXML 4.0 with the NewParser option set to True. For more information, visit the following MSDN Web site:

DOM setProperty Method

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/htm/xml_mth_sz_8m49.asp

For additional information about upgrading the MSXML parser, click the article number below to view the article in the Microsoft Knowledge Base:

324460 HOW TO: Upgrade the Microsoft XML Parser



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.



MORE INFORMATION
Because this bug is in a published public interface, Microsoft cannot produce a complete fix. The hotfix described in the &quot;Workaround&quot; section of this article avoids the access violation because it aborts the parse and returns E_FAIL when it detects a potential &quot;crash&quot; situation.

Keywords: kbhotfixserver kbqfe kbbug kbfix kbqfe KB327206

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.