Commit 4358f7c3 authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

webservices: Fix invalid memory access in remove_header.

parent 0238d470
......@@ -787,7 +787,7 @@ HRESULT WINAPI WsSetHeader( WS_MESSAGE *handle, WS_HEADER_TYPE type, WS_TYPE val
static void remove_header( struct msg *msg, ULONG i )
{
free_header( msg->header[i] );
memmove( &msg->header[i], &msg->header[i + 1], (msg->header_count - i) * sizeof(struct header *) );
memmove( &msg->header[i], &msg->header[i + 1], (msg->header_count - i - 1) * sizeof(struct header *) );
msg->header_count--;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment