Re: [rust-dev] Integer overflow, round -2147483648

2014-06-27 Thread Daniel Micay
On 27/06/14 01:45 AM, Gregory Maxwell wrote: On Thu, Jun 26, 2014 at 10:30 PM, Daniel Micay danielmi...@gmail.com wrote: It's a perfect example of a case where this feature wouldn't have helped. Performance critical loops with years of micro-optimization are not going to use checked arithmetic

Re: [rust-dev] Integer overflow, round -2147483648

2014-06-27 Thread Igor Bukanov
This bug would be harmless in safe code in Rust as exploiting it requires array access without bound checking. On 27 June 2014 07:07, Tony Arcieri basc...@gmail.com wrote: Thought I'd just throw this one on the fire ;)

Re: [rust-dev] Integer overflow, round -2147483648

2014-06-27 Thread Patrick Walton
On 6/27/14 1:31 AM, Igor Bukanov wrote: This bug would be harmless in safe code in Rust as exploiting it requires array access without bound checking. Correct. This is a prime example of what I was talking about in my earlier message: weaponizing integer overflows is much more difficult in a

[rust-dev] Code Review: Guessing Game (help the new docs!)

2014-06-27 Thread Steve Klabnik
Hey all, So! The new tutorial will be focused on building several small projects in Rust. This example is the first one: a classic 'guessing game.' This was one of the first programs I wrote when I first learned C. I'd like the feedback of the community before I actually start writing the guide.