This is essentially what ASan already does, AFAIK. I would like ASan support 
for Rust someday, as unsafe code can still benefit from it (although not to the 
degree that C code does, obviously).

Patrick

On March 29, 2014 6:44:08 PM PDT, David Morris <davidrowlandmor...@gmail.com> 
wrote:
>Might it be useful to turn this the other way up, and introduce an
>option
>to *add* bounds checks to unsafe indexing when debugging? It seems like
>removing that undefined behaviour would make debugging of unsafe code
>easier, like the optional bounds checks for unsafe programming
>languages
>that people are referring to.
>
>(This may be silly, unnecessary, already done, or infeasible, or I may
>be
>missing something obvious---I have yet to reach my intended level of
>familiarity with rust. But it seemed like a question worth asking).
>
>David
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Rust-dev mailing list
>Rust-dev@mozilla.org
>https://mail.mozilla.org/listinfo/rust-dev

-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to