CVSROOT:        /cvs
Module name:    src
Changes by:     patr...@cvs.openbsd.org 2021/03/10 14:49:56

Modified files:
        sys/dev/acpi   : acpiprt.c acpipwrres.c acpitz.c atk0110.c 
                         dsdt.c dsdt.h 

Log message:
Our ACPI namerefs are pointers to the byte structures for ACPI names.
These are not in a printable format, hence printing them as string is
wrong.  Additionally, aml_searchrel()/aml_searchname() expect the name
to be passed in a printable format as well.  Passing a nameref can lead
to an out-of-bounds read, and the comparison can fail.  Hence make sure
that namerefs are passed to aml_getname() first, which returns printable
strings.  Note that aml_getname() uses a static buffer, so there are a
few restrictions how the string can be used.

ok kettenis@

Reply via email to