From cf358ed153e603fea908281795a418fd4ec8fe63 Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Thu, 23 Sep 2010 11:32:34 +0000 Subject: [PATCH] [I8042PRT] - Fix potential buffer overflow svn path=/trunk/; revision=48849 --- reactos/drivers/input/i8042prt/mouse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/drivers/input/i8042prt/mouse.c b/reactos/drivers/input/i8042prt/mouse.c index efa73093244..128dd95252c 100644 --- a/reactos/drivers/input/i8042prt/mouse.c +++ b/reactos/drivers/input/i8042prt/mouse.c @@ -492,7 +492,7 @@ cleanup: { PINTERNAL_I8042_HOOK_MOUSE MouseHook; TRACE_(I8042PRT, "IRP_MJ_INTERNAL_DEVICE_CONTROL / IOCTL_INTERNAL_I8042_HOOK_MOUSE\n"); - if (Stack->Parameters.DeviceIoControl.InputBufferLength < sizeof(CONNECT_DATA)) + if (Stack->Parameters.DeviceIoControl.InputBufferLength < sizeof(INTERNAL_I8042_HOOK_MOUSE)) { Status = STATUS_INVALID_PARAMETER; break;