by xyzzy4 · 9y ago · 0 comments
Writing C code with well-defined semantics in the face of existing heap corruption is harder. The strn* functions don't do that either though.
For real programs you basically have to put it in the initial computation, or it will be forgotten somewhere later (maybe in a later commit).