News for hackers. Stuff that matters.
Re:Preparing Rustls for Wider Adoption by e12e on Tuesday April 20, 2021 @12:23PM (#26876798)
But is this undefined behavior in the typical c sense (lol, I see you call function possibly_undefined() I'll just make you a sandwich and clobber all registers instead) - or undefined behavior in the sense that it should crash - but might return?
Re:Preparing Rustls for Wider Adoption by orra on Tuesday April 20, 2021 @01:50PM (#26878043)
I’m not sure I'd draw a distinction. People used to say you should initialise your variables in C89 to NULL, so you'd get a crash if you forget to properly set the variable. But enough security bugs have been caused by null pointer dereferences.

In the Rust case, IIRC, Rust annotates functions with the LLVM attribute no_unwind. I'd expect bad things, thanks to optimisation passes, if an unwind were to start. Doubly so if mixing GCC with MSVC ABI.

Re:Preparing Rustls for Wider Adoption by nicoburns on Tuesday April 20, 2021 @03:53PM (#26880551)
> is this undefined behavior in the typical c sense (lol, I see you call function possibly_undefined() I'll just make you a sandwich and clobber all registers instead)

Yes.