"ABW (Array Bounds Overwrite) in WideCharToMultiByte" Is Reported by Purify (810857)



The information in this article 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.

Modification Type:MinorLast Reviewed:5/29/2003
Keywords:kb3rdparty kbprb KB810857