Skip to content

[0.2] Windows BCryptGenRandom uses wrong signature #775

@CraftSpider

Description

@CraftSpider

In version 0.2, the return type of BCryptGenRandom is declared as u32, when NTSTATUS is defined as an i32. This was noticed by miri, as it's about to start catching this UB on Windows shim functions: rust-lang/miri#4779.

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