Re:Simple Dynamic Strings library for C, compatible with nul...
by liuliu on Tuesday December 03, 2019 @11:31AM
(#21693825)
It is not a real issue in modern days. You just enable address sanitizer in all your debug builds and these issues are obvious at runtime (still not perfect, but an improvement from dark days).
[ Parent
| on HN ]
Re:Simple Dynamic Strings library for C, compatible with nul...
by saagarjha on Tuesday December 03, 2019 @12:00PM
(#21694115)
Address sanitizer can only catch errors on branches your debug build exercises.
Re:Simple Dynamic Strings library for C, compatible with nul...
by liuliu on Tuesday December 03, 2019 @01:30PM
(#21695093)
For redis, I think given the code coverage on test cases, that shouldn't be a concern. TBH, I think any C code that doesn't have a coverage is not a functioning code. Too much bugs can only be caught at runtime (thankful to the sanitizers-family / valgrind).