mirror of
https://github.com/torvalds/linux.git
synced 2026-07-29 02:31:27 +02:00
ACPICA: Fix condition check in acpi_ps_parse_loop()
Fix condition check for AML_ELSE_OP in acpi_ps_parse_loop() to prevent out-of-bounds access. Link: https://github.com/acpica/acpica/commit/3b537b92336e Signed-off-by: ikaros <void0red@gmail.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Link: https://patch.msgid.link/1959692.tdWV9SEqCh@rafael.j.wysocki
This commit is contained in:
parent
7e1f091e1c
commit
8de27e2d83
|
|
@ -425,7 +425,10 @@ acpi_status acpi_ps_parse_loop(struct acpi_walk_state *walk_state)
|
|||
|
||||
ACPI_ERROR((AE_INFO,
|
||||
"Skipping While/If block"));
|
||||
if (*walk_state->aml == AML_ELSE_OP) {
|
||||
if ((walk_state->aml <
|
||||
parser_state->aml_end)
|
||||
&& (*walk_state->aml ==
|
||||
AML_ELSE_OP)) {
|
||||
ACPI_ERROR((AE_INFO,
|
||||
"Skipping Else block"));
|
||||
walk_state->parser_state.aml =
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user