| .. | .. |
|---|
| 3 | 3 | * |
|---|
| 4 | 4 | * Module Name: exoparg2 - AML execution - opcodes with 2 arguments |
|---|
| 5 | 5 | * |
|---|
| 6 | | - * Copyright (C) 2000 - 2018, Intel Corp. |
|---|
| 6 | + * Copyright (C) 2000 - 2020, Intel Corp. |
|---|
| 7 | 7 | * |
|---|
| 8 | 8 | *****************************************************************************/ |
|---|
| 9 | 9 | |
|---|
| .. | .. |
|---|
| 287 | 287 | * NOTE: A length of zero is ok, and will create a zero-length, null |
|---|
| 288 | 288 | * terminated string. |
|---|
| 289 | 289 | */ |
|---|
| 290 | | - while ((length < operand[0]->buffer.length) && |
|---|
| 291 | | - (length < operand[1]->integer.value) && |
|---|
| 292 | | - (operand[0]->buffer.pointer[length])) { |
|---|
| 290 | + while ((length < operand[0]->buffer.length) && /* Length of input buffer */ |
|---|
| 291 | + (length < operand[1]->integer.value) && /* Length operand */ |
|---|
| 292 | + (operand[0]->buffer.pointer[length])) { /* Null terminator */ |
|---|
| 293 | 293 | length++; |
|---|
| 294 | 294 | } |
|---|
| 295 | 295 | |
|---|
| .. | .. |
|---|
| 390 | 390 | /* Failure means that the Index was beyond the end of the object */ |
|---|
| 391 | 391 | |
|---|
| 392 | 392 | if (ACPI_FAILURE(status)) { |
|---|
| 393 | | - ACPI_EXCEPTION((AE_INFO, status, |
|---|
| 394 | | - "Index (0x%X%8.8X) is beyond end of object (length 0x%X)", |
|---|
| 395 | | - ACPI_FORMAT_UINT64(index), |
|---|
| 396 | | - (u32)length)); |
|---|
| 393 | + ACPI_BIOS_EXCEPTION((AE_INFO, status, |
|---|
| 394 | + "Index (0x%X%8.8X) is beyond end of object (length 0x%X)", |
|---|
| 395 | + ACPI_FORMAT_UINT64(index), |
|---|
| 396 | + (u32)length)); |
|---|
| 397 | 397 | goto cleanup; |
|---|
| 398 | 398 | } |
|---|
| 399 | 399 | |
|---|