Skip to content

miri does not detect reading undefined bytes if simple unions are involved #51330

Closed
@oli-obk

Description

@oli-obk

http://play.rust-lang.org/?gist=99912c4c87d4d676817c8a7263289c9b&version=undefined&mode=undefined

shows an example where miri returns zeroes instead of erroring because of undefined bytes being read.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions