Re:Solutions to Integer Overflow
by pcwalton on Saturday September 03, 2016 @04:10PM
(#12420932)
> Trapping should be the default, and disabled only by special user intent, which optimization flags are not.
At the cost of making programs slower. For every comment like this we would have 5 comments asking why Rust is slower than C++.
Besides, the real solution is memory safety, which Rust does not compromise. Memory safety stops the vast majority of overflow issues from becoming security problems.
At the cost of making programs slower. For every comment like this we would have 5 comments asking why Rust is slower than C++.
Besides, the real solution is memory safety, which Rust does not compromise. Memory safety stops the vast majority of overflow issues from becoming security problems.