|
|
|
|
|
by lelanthran
812 days ago
|
|
> you should only worry about it at the boundary with the other library. If this was a mitigation, it would solve all problems with nul-terminated strings i.e. do strict and error-checked conversions to nul-terminated strings at all boundaries to the program, and then nul-terminated strings and len-specified strings are equivalently dangerous (or safe, depending on your perspective). The problem is precisely that unsanitised input makes its way into the application, bypassing any checks. |
|
That's very different from needing to be on your toes with every usage of the strxcpy family.