Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Concatenate(String, RefOf) is broken #139

Open
d-tatianin opened this issue Nov 4, 2023 · 0 comments
Open

Concatenate(String, RefOf) is broken #139

d-tatianin opened this issue Nov 4, 2023 · 0 comments

Comments

@d-tatianin
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant