libxrdp: fastpath input, validate eventFlags

ulab-next
speidy 10 years ago
parent 6e85223a8a
commit 0a225729c7

@ -169,6 +169,11 @@ xrdp_fastpath_process_EVENT_MOUSE(struct xrdp_fastpath *self, int eventFlags,
int xPos;
int yPos;
/* eventFlags MUST be zeroed out */
if (eventFlags != 0) {
return 1;
}
if (!s_check_rem(s, 2 + 2 + 2))
{
return 1;
@ -201,6 +206,11 @@ xrdp_fastpath_process_EVENT_MOUSEX(struct xrdp_fastpath *self,
int xPos;
int yPos;
/* eventFlags MUST be zeroed out */
if (eventFlags != 0) {
return 1;
}
if (!s_check_rem(s, 2 + 2 + 2))
{
return 1;

Loading…
Cancel
Save