by saagarjha · 7y ago · 0 comments
This isn't an exploitable vulnerability in Rust, though? I thought the program would just abort if it overflowed the stack.
let huge_ary: [u8; 2097152 /* 2MiB */] = unsafe { ::std::mem::uninitialized() };
// hopefully huge_ary has bumped the stack pointer past any guard pages
// and any further stack values will overwrite the heap