News for hackers. Stuff that matters.
Re:Defining the Undefinedness of C (2015) [pdf] by spc476 on Wednesday July 26, 2017 @04:27PM (#14859975)
The VAX. There's a bit in the condition codes register that indicates if overflow traps or not.

Then there's the matter if ((char )0) causes a trap or not; on systems without a MMU, it probably won't trap [1]. It's differences like overflow and memory references that cause most of the UB you see in C.

[1] On Linux, you can map a page to address 0. But that you can, doesn't mean you should.

There are no comments on this comment yet.