Microsoft KB Archive/313147

= GetNtmsObjectAttribute Does Not Return Correct Size When the Buffer Is Too Small =

Article ID: 313147

Article Last Modified on 5/21/2007

-

APPLIES TO


 * Microsoft Windows XP Home Edition
 * Microsoft Windows XP Professional

-



This article was previously published under Q313147



SYMPTOMS
When the GetNtmsObjectAttribute function is called and the buffer is too small, an ERROR_INSUFFICIENT_BUFFER error is returned with the wrong value.



CAUSE
The array in the GetNtmsObjectAttribute call, is defined as a conforment array. When the API is called, the array size is set at runtime as to what the caller sets it to. When the server side sets the size to a higher value for the return argument, the RPC runtimes determine that it is an out-of-bounds error.



RESOLUTION
To resolve this problem, obtain the latest service pack for Windows XP. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

322389 How to Obtain the Latest Windows XP Service Pack

The English version of this fix should have the following file attributes or later:

  Date         Time     Version      Size     File name ---  14-Feb-2002  12:42pm  5.1.2600.28  165,888  Ntmsdba.dll 14-Feb-2002 12:42pm  5.1.2400.28   38,400  Ntmsapi.dll 14-Feb-2002 12:42pm  5.1.2400.28  396,288  Ntmssvc.dll



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Windows XP Service Pack 1.

Keywords: kbhotfixserver kbqfe kbbug kbenv kberrmsg kbfix kbsysadmin kbwinxpsp1fix KB313147

-

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

© Microsoft Corporation. All rights reserved.