VUL: fix some possible buffer overruns
This commit is contained in:
parent
9af5c814fa
commit
384425f79f
@ -324,6 +324,11 @@ xrdp_mcs_recv_connect_initial(struct xrdp_mcs* self)
|
|||||||
free_stream(s);
|
free_stream(s);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
if (!s_check_rem(s, len))
|
||||||
|
{
|
||||||
|
free_stream(s);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
/* make a copy of client mcs data */
|
/* make a copy of client mcs data */
|
||||||
init_stream(self->client_mcs_data, len);
|
init_stream(self->client_mcs_data, len);
|
||||||
out_uint8a(self->client_mcs_data, s->p, len);
|
out_uint8a(self->client_mcs_data, s->p, len);
|
||||||
|
Loading…
Reference in New Issue
Block a user