mirror of
https://github.com/wine-mirror/wine
synced 2024-07-08 20:06:18 +00:00
server: Don't crash on invalid request sizes.
This commit is contained in:
parent
8abef9ea50
commit
5522446848
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user