mirror of https://github.com/neutrinolabs/xrdp
libxrdp: fastpath input, validate eventFlags
This commit is contained in:
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…
Reference in New Issue