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

Article translations Article translations
Article ID: 313147 - View products that this article applies to.
This article was previously published under Q313147
Expand all | Collapse all


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


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.


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


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.


Article ID: 313147 - Last Review: May 21, 2007 - Revision: 1.3
  • Microsoft Windows XP Home Edition
  • Microsoft Windows XP Professional
kbhotfixserver kbqfe kbbug kbenv kberrmsg kbfix kbsysadmin kbwinxpsp1fix KB313147

Give Feedback


Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from