mirror of
https://github.com/reactos/reactos.git
synced 2024-09-11 05:12:43 +00:00
- Improve parameter checks to prevent access beyond array boundaries
- Patch by Daniel Zimmermann, <netzimme AT aim DOT com> - Bug #3913, CIDs 595-598 svn path=/trunk/; revision=37746
This commit is contained in:
parent
165bfe865b
commit
023baca726
|
@ -451,7 +451,7 @@ acpi_install_gpe_handler (
|
|||
|
||||
/* Parameter validation */
|
||||
|
||||
if (!handler || (gpe_number > NUM_GPE)) {
|
||||
if (!handler || (gpe_number >= NUM_GPE)) {
|
||||
return (AE_BAD_PARAMETER);
|
||||
}
|
||||
|
||||
|
@ -510,7 +510,7 @@ acpi_remove_gpe_handler (
|
|||
|
||||
/* Parameter validation */
|
||||
|
||||
if (!handler || (gpe_number > NUM_GPE)) {
|
||||
if (!handler || (gpe_number >= NUM_GPE)) {
|
||||
return (AE_BAD_PARAMETER);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue