3 ms·
"Passive aggressive" hits the nail on the head. If someone truly believes you should break software that made bad assumptions about memcpy, as a matter of engi
by andrewf 16y ago
"Passive aggressive" hits the nail on the head.
If someone truly believes you should break software that made bad assumptions about memcpy, as a matter of engineering principle, then just stick this at the top of memcpy and be done with it:
if((src <= dest && src+len >= dest) || (dest <= src && dest+len >= src))
abort(); /* valid - spec says behaviour is undefined */
- s3graham 16y agoDAMN LIBC DEVS BROKE MY ABUTTING memcpyS! ;)