Skip to content

Consider disabling LUAI_ASSERT in tests for PUC Rio Lua #138

@ligurio

Description

@ligurio

Bytecode parser in PUC Rio Lua does not strict and malicious bytecode can trigger assertions enabled by macro LUAI_ASSERT (internal assertions for in-house debugging). These cases are often false positive.
Let's consider disabling LUAI_ASSERT in the following tests: luaL_loadbufferx_test 1, lua_load_test 2 and lua_dump_test 3.

See:

Footnotes

  1. https://github.com/ligurio/lua-c-api-tests/blob/0508724910b252010ae5f6bcaef0e54cf198cf5b/tests/capi/luaL_loadbufferx_test.c

  2. https://github.com/ligurio/lua-c-api-tests/blob/0508724910b252010ae5f6bcaef0e54cf198cf5b/tests/capi/lua_load_test.cc

  3. https://github.com/ligurio/lua-c-api-tests/blob/0508724910b252010ae5f6bcaef0e54cf198cf5b/tests/capi/lua_dump_test.c

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions