[I8042PRT]
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Thu, 23 Sep 2010 11:32:34 +0000 (11:32 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Thu, 23 Sep 2010 11:32:34 +0000 (11:32 +0000)
- Fix potential buffer overflow

svn path=/trunk/; revision=48849

reactos/drivers/input/i8042prt/mouse.c

index efa7309..128dd95 100644 (file)
@@ -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;