Commit 55224468 authored by Alexandre Julliard's avatar Alexandre Julliard

server: Don't crash on invalid request sizes.

parent 8abef9ea
...@@ -318,7 +318,11 @@ void read_request( struct thread *thread ) ...@@ -318,7 +318,11 @@ void read_request( struct thread *thread )
return; return;
} }
if (!(thread->req_data = malloc( thread->req_toread ))) if (!(thread->req_data = malloc( thread->req_toread )))
fatal_protocol_error( thread, "no memory for %d bytes request\n", thread->req_toread ); {
fatal_protocol_error( thread, "no memory for %u bytes request %d\n",
thread->req_toread, thread->req.request_header.req );
return;
}
} }
/* read the variable sized data */ /* read the variable sized data */
......
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