Skip to content

Miri can't detect clashing shims between static and function symbols in all cases #5242

Description

@hkalbasi

https://godbolt.org/z/r1GbWfz9M

This is accepted currently in miri, but environ conflicts with miri static shim so it should be rejected. The problem is that the map of symbol to shim is not unified and there are multiple maps, so in this case environ is not detected as a shim and so the check_shim_symbol_clash logic doesn't kick in.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-shimsArea: This affects the external function/static shimsC-bugCategory: This is a bug.I-misses-UBImpact: makes Miri miss UB, i.e., a false negative (with default settings)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions