SafeString library discussion again :)

@J-M-L

Your analogy with the parachute is limping.

The "worst" thing that can happen with a SafeString is:
A string that has more characters than the SafeString can store get's truncated.

result: A string does not match what the string was intented to be.
So some if-condition will not evaluate to true or some text shown on a display or sent to a database is truncated.

A c_string that get's assigned more characters than the c_string array was defined for will overwrite other RAM. Which leads to absolutely unpredictable results.

And there you are right for using c_strings you must kow very well what you are doing
And you should add this information to your recommendation at first place.

For the "bloating" of the SafeString-library
post a comparising how many bytes using the SafeString-library are required
compared to
a c_string code that includes all the self written safety-checking code for a medium complex case

I 'm pretty sure as soon as all the safety-checking code is added the difference how many bytes are required will be small.
proof me wrong by posting a demo-code