Our sysadmin found a neat one: use regular expressions to find people who got the arguments to memset() the wrong way around, and instead of zeroing 'n' bytes of memory, end up 'n'-ing zero bytes of memory.
(I wasn't allowed to paste the URL. Maybe just pasting the regex will work)
Comments
Seeing AssPart.java in the file list shouldn't have made me laugh, but it did.
Our sysadmin found a neat one: use regular expressions to find people who got the arguments to memset() the wrong way around, and instead of zeroing 'n' bytes of memory, end up 'n'-ing zero bytes of memory.
(I wasn't allowed to paste the URL. Maybe just pasting the regex will work)
Search for: memset\s*\(.+,\s*0\s*\)
Yeah. Donkeys are funny.