News for hackers. Stuff that matters.
Re:A problem with LLVM's undef by sanjoy_das on Wednesday December 30, 2015 @07:29AM (#10811801)
Interesting observation -- just because I've checked `%i` is within array bounds, doesn't mean `a[%i]` is safe to access, since `%i` could be `undef` and pass the range check spuriously.
Re:A problem with LLVM's undef by kzrdude on Friday January 01, 2016 @11:53AM (#10822345)
Yeah. And range checks are used to take subslices, so you can take a "sub"slice that's half the memory space, and you have unchecked access to everything after that point :-)