Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jimjimjim
on June 13, 2015
|
parent
|
context
|
favorite
| on:
Being Sneaky in C
cheat. after resetting the memory, copy the first and last bytes and log them out somewhere. that'll prevent any optimizations
TheLoneWolfling
on June 13, 2015
[–]
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: