RE: [PATCH] acpi: acpica: dsutils: fix an off-by-one index

2017-06-07 Thread Moore, Robert
nux-kernel@vger.kernel.org; Seraphime Kirkovski > > Subject: [PATCH] acpi: acpica: dsutils: fix an off-by-one index > > This was detected by UBSAN. > Fix it by checking whether there are any arguments prior to indexing the > array. > > [0.222775] UBSAN: Undefined b

[PATCH] acpi: acpica: dsutils: fix an off-by-one index

2017-06-06 Thread Seraphime Kirkovski
This was detected by UBSAN. Fix it by checking whether there are any arguments prior to indexing the array. [0.222775] UBSAN: Undefined behaviour in drivers/acpi/acpica/dsutils.c:640:16 [0.222778] index -1 is out of range for type 'acpi_operand_object*[9]' [0.222781] CPU: 0 PID: 1 Com