Better code searching for Debian
Better code searching for Debian
Posted Jan 8, 2015 22:43 UTC (Thu) by zlynx (guest, #2285)In reply to: Better code searching for Debian by dfsmith
Parent article: Better code searching for Debian
I know its a feature because I switched some code from strncpy to strlcpy because profiling showed writing the zeros into an 8KB URL string buffer was wasting a LOT of time.
If you are worried about information leaks then you need to be using a security library and it needs to be written in ASM because compilers are too likely to optimize all the security features away. For example, unless a value is volatile the compiler can remove all writes to it if nothing reads it before destroying it.