Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"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 */


DAMN LIBC DEVS BROKE MY ABUTTING memcpyS!

;)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: