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?
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: