rust/tests/run-make-fulldeps/sanitizer-cdylib-link/library.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
121 B
Rust
Raw Normal View History

#[no_mangle]
pub extern "C" fn overflow() {
let xs = [0, 1, 2, 3];
let _y = unsafe { *xs.as_ptr().offset(4) };
2016-12-29 22:28:11 -06:00
}