--- ioperm-0.4/driver/ioperm.c~ 2003-01-31 09:08:58.000000000 -0600 +++ ioperm-0.4/driver/ioperm.c 2008-02-19 09:17:17.875000000 -0600 @@ -94,7 +94,7 @@ /* test input buffer size and parameters */ if ((io_stack->Parameters.DeviceIoControl.InputBufferLength < sizeof (struct ioperm_data)) - || (!ioperm_data) || (ioperm_data->from + ioperm_data->num > 0x400)) + || (!ioperm_data) || (ioperm_data->from + ioperm_data->num > 0x10000)) { Irp->IoStatus.Status = STATUS_INVALID_PARAMETER; } else {