Re:Being Sneaky in C
by jimjimjim on Saturday June 13, 2015 @01:06AM
(#9709963)
cheat. after resetting the memory, copy the first and last bytes and log them out somewhere. that'll prevent any optimizations
[ Parent
| on HN ]
Re:Being Sneaky in C
by TheLoneWolfling on Saturday June 13, 2015 @01:38AM
(#9710027)
If only it were so simple. You underestimate the evilness of compilers.
The compiler can (and will!) just propagate the values through directly and skip the memset.