CFI: f32 and f64 are encoded incorrectly for cross-language CFI #115150
Labels
C-bug
Category: This is a bug.
PG-exploit-mitigations
Project group: Exploit mitigations
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I missed changing the encoding for f32 and f64 when I introduced the integer normalization option in #105452 as integer normalization does not include floating point.
f32
andf64
should be always encoded asf
andd
since they are both FFI safe when their representation are the same (i.e., IEEE 754) for both the Rust compiler and Clang.The text was updated successfully, but these errors were encountered: