Microsoft KB Archive/810857

= &quot;ABW (Array Bounds Overwrite) in WideCharToMultiByte&quot; Is Reported by Purify =

Article ID: 810857

Article Last Modified on 10/27/2006

-

APPLIES TO


 * Microsoft Windows XP Home Edition
 * Microsoft Windows XP Professional

-



SYMPTOMS
When you test your program with Rational Purify for Windows, Purify may report the following problem:

ABW (Array Bounds Overwrite) in WideCharToMultiByte when calling Socket API gethostbyname



CAUSE
Purify validates the input parameters to the WideCharToMultiByte function call. In this case, there is an input string with a known length and an output buffer that is big enough for the conversion. However, there is another (sixth) input paramter to specifify the size of the output buffer. This size is set to the maximum string size for simplicity. Purify tries to validate the buffer for the full size instead of the actual size.



RESOLUTION
This error message does not cause a problem; you can safely ignore this error message.



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



MORE INFORMATION
The third-party products that are discussed in this article are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.

Additional query words: Boundschecker

Keywords: kb3rdparty kbprb KB810857

-

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

© Microsoft Corporation. All rights reserved.