Skip to content

Check that offset is not too big, check projection offset to be inbounds #447

Closed
rust-lang/rust
#63075
@RalfJung

Description

@RalfJung

According to rust-lang/rust#53676, there is an upper bound to what you can do with offset. miri should check that.

Related question: Shouldn't the place_field method in the miri engine check pointer_offset_inbounds? That will be a heavy perf hit, but I think we might currently be missing out on some UB.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-validationArea: This affects enforcing the validity invariant, and related UB checkingC-enhancementCategory: a PR with an enhancement or an issue tracking an accepted enhancementI-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