Skip to content

[CERT-C mapping] Correctness of mapping of FIO34 / FIO37 #1222

Description

@darkwisebear

FIO34 and FIO37 talk about undefined behavior under certain circumstances, when using STREAM based C APIs (fopen, fread, ...). These rules are marked as "not applicable" to Rust. However, one can call these functions in Rust, so that calling them in the wrong way will lead to UB also in Rust.

Open points:

  • Since these functions can be called in Rust, would these rules (and maybe others) need to be re-categorized?
  • If so, would we need a new rule to cover this case more specifically, or does the general "do not do bogus things in unsafe" cover this?

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