Skip to content

[UBSan] call to function through pointer to incorrect function type when running C++ API examples #1287

@delcypher

Description

@delcypher

When building Z3 with UBSan, when the C++ api examples are executed the following error is reported.

/home/user/z3_src/src/api/api_context.cpp:278:13: runtime error: call to function (unknown) through pointer to incorrect function type 'void (*)(_Z3_context *, Z3_error_code)'
(/home/user/z3_build/examples/cpp_example_build_dir/cpp_example+0x4ad480): note: (unknown) defined here

This is for 110d558

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions