VUL: fix some possible buffer overruns

This commit is contained in:
Jay Sorg 2013-09-05 14:37:50 -07:00
parent 0bc3ee2cd7
commit 9533e7fa2e

View File

@ -341,6 +341,11 @@ xrdp_mcs_recv_connect_initial(struct xrdp_mcs* self)
free_stream(s);
return 1;
}
if (!s_check_rem(s, len))
{
free_stream(s);
return 1;
}
/* make a copy of client mcs data */
init_stream(self->client_mcs_data, len);
out_uint8a(self->client_mcs_data, s->p, len);