Null-terminated string: Difference between revisions

Content deleted Content added
+.ASCIZ
No edit summary
Line 5:
The null-termination characteristic has historically created security problems related to the length of the string. If the null character is not put to the end of the string for some reason, any following non-related memory area is also processed as a part of the character sequence. This can lead to program crashes or leakage of program internal information to attackers or non-understanding users.
 
In the [[C Plus Plus|C++]] programming language]], C strings are used in coordinationaddition withto another representation of character sequences, the <code>std::string</code> container found in the [[Standard Template Library|STL]] ([[ANSI]] standard C++STL) strings. Thus, it is important to differentiate between the traditional "C strings" and on the other hand the more advanced "stringsstring" thatobjects areprovided [[object (object-oriented programming)|object]]s ofby the STL ''string'' [[class (computer science)|class]].
 
== Trivia ==