1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-03 08:19:41 +00:00

server: Don't crash on invalid request sizes.

This commit is contained in:
Alexandre Julliard 2006-07-27 14:39:33 +02:00
parent 8abef9ea50
commit 5522446848

View File

@ -318,7 +318,11 @@ void read_request( struct thread *thread )
return;
}
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 */