libxrdp: fastpath input, validate eventFlags

This commit is contained in:
speidy 2014-03-10 02:52:08 +02:00
parent 6e85223a8a
commit 0a225729c7
1 changed files with 10 additions and 0 deletions

View File

@ -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;