News for hackers. Stuff that matters.
Re:totally_safe_transmute, Line-by-Line (2021) by kazinator on Tuesday January 09, 2024 @04:09AM (#38923917)
We have no idea whether the bytes that were copied into that object are a valid representation.
Re:totally_safe_transmute, Line-by-Line (2021) by aw1621107 on Wednesday January 10, 2024 @10:58AM (#38939978)
Ah, I didn't think of that.

That being said, is there a representation for doubles that could be considered invalid? I thought all double bit patterns are interpretable as a "valid" double, even if you get NaNs.