Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Thu, 23 Feb 2006 13:26:26 -0800,    group: microsoft.public.platformsdk.internet.server.isapi-dev        back       


ERROR_INVALID_INDEX on a valid header   
Hello,
In a filter, sometimes with long cookie strings I call GetHeader for 
"Cookie:" and ERROR_INVALID_INDEX is returned. This happens inside and 
outside of a debugger. The behavior though is the same as 
ERROR_INSUFFICIENT_BUFFER in that the new size to allocate is set in the 
dword len parameter. If I break in a debugger and set the line to call 
GetHeader again, it works (of course causing a buffer overrun because the len 
parameter is the requested len rather than that of the existing buffer).
Seems this error should happen when a header is not known but is happening 
when the buffer is too small. Any thoughts oin what thats happening?
Thanks,

-- 
Adam Tuliper
http://www.secure-coding.com
date: Thu, 23 Feb 2006 13:26:26 -0800   author:   Adam am

RE: ERROR_INVALID_INDEX on a valid header   
Hi Adam,

Thanks for posting!

As we all know, the "ERROR_INVALID_INDEX" is that bad or unsupported 
variable identifier is used at current stage. From your description, I 
think I need repro the current issue. Then, I can do some troubleshooting 
to figure out why the problem occurs. So, could you please give me the 
source code as zipped format and the specific string you mentioned in the 
thread? This will help me to narrow down the current issue. My alias is 
v-yren@online.microsoft.com (remove .online). Thanks for your 
understanding! I'm looking forward your reply.

Regards,

Yuan Ren [MSFT]
Microsoft Online Support
======================================================
PLEASE NOTE the newsgroup SECURE CODE and PASSWORD were 
updated on February 14, 2006.  Please complete a re-registration process 
by entering the secure code mmpng06 when prompted. Once you have 
entered the secure code mmpng06, you will be able to update your profile 
and access the partner newsgroups.
====================================================== 
When responding to posts, please "Reply to Group" via your newsreader 
so that others may learn and benefit from this issue. 
======================================================
This posting is provided "AS IS" with no warranties, and confers no rights. 
======================================================
date: Fri, 24 Feb 2006 08:17:16 GMT   author:   (Yuan Ren[MSFT])

RE: ERROR_INVALID_INDEX on a valid header   
Hi Adam,

Thanks for your reply!

I just want to confirm whether any invalid characters included in your 
header name such as a semi-column ? : ?. If not, please send your .dll file 
and Ill continue research the current issue.

Thanks for your understanding!

Regards,

Yuan Ren [MSFT]
Microsoft Online Support
date: Tue, 07 Mar 2006 01:32:57 GMT   author:   (Yuan Ren[MSFT])

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us