Skip to content

Concatenate(String, RefOf) is broken #139

Description

@d-tatianin

Steps to reproduce:

  1. Compile this code
DefinitionBlock ("", "DSDT", 2, "TTEST", "TESTTABL", 0xF0F0F0F0)
{
    Scope(_SB) {
        Method(_INI, 0, NotSerialized) {
            Local0 = 123
            Debug = Concatenate("Test", RefOf(Local0))
        }
    }
}
  1. ./laiexec test.aml

This crashes in lai_exec_string_length:

ACPI namespace created, total of 9 predefined objects.
Executing _SB_._INI
assertion failed: str->type == LAI_STRING at ../subprojects/lai/core/exec-operand.c:14

Sidenote:
Concatenate with any ref type produces weird output like (uninitialized) but at least it doesn't crash

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions