Author: gschneider
Date: Sat Nov 29 15:01:14 2008
New Revision: 37746
URL:
http://svn.reactos.org/svn/reactos?rev=37746&view=rev
Log:
- Improve parameter checks to prevent access beyond array boundaries
- Patch by Daniel Zimmermann, <netzimme AT aim DOT com>
- Bug #3913, CIDs 595-598
Modified:
trunk/reactos/drivers/bus/acpi/events/evxface.c
Modified: trunk/reactos/drivers/bus/acpi/events/evxface.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/acpi/events/ev…
==============================================================================
--- trunk/reactos/drivers/bus/acpi/events/evxface.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/acpi/events/evxface.c [iso-8859-1] Sat Nov 29 15:01:14 2008
@@ -451,7 +451,7 @@
/* Parameter validation */
- if (!handler || (gpe_number > NUM_GPE)) {
+ if (!handler || (gpe_number >= NUM_GPE)) {
return (AE_BAD_PARAMETER);
}
@@ -510,7 +510,7 @@
/* Parameter validation */
- if (!handler || (gpe_number > NUM_GPE)) {
+ if (!handler || (gpe_number >= NUM_GPE)) {
return (AE_BAD_PARAMETER);
}