Skip to content

Undefined behavior in tests #24

@GnomedDev

Description

@GnomedDev

range: MaybeUninit::uninit().assume_init(),
This is always undefined behavior, as although not read it is still a value that is being created and passed to llvm as noundef. This will cause aborts in a couple Rust versions, when this pattern is compiled to ud2 (undefined instruction, abort instantly).

This is already being caught by running clippy locally, which I suggest is added to CI, under the clippy::uninit_assumed_init lint.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions