Comment by kazinator

2 years ago

All non-dynamic string representations give rise to the situations where programmers need to combine strings that don't fit into the destination.

Whether null-terminated or not, dynamic strings that solve the problem of being able to add two strings together without worrying whether the destination buffer is large enough (trading that problem for DoS concerns when a malicious agent may feed a huge input to the program).