Content deleted Content added
No edit summary |
mNo edit summary |
||
Line 7:
The null-termination characteristic has historically created [[computer insecurity|security problems]] related to the length of the string. If the null character is not correctly accounted for, any following non-related memory area may also be 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.
== C String header ==
The <cstring> header and its functions are the ideal way to work with C strings. Typical operator use with C strings will frequently create problems with pointers. As an example, using the = operator between two C strings does not copy the array but copies a pointer to this array. This is incorrect usage for most typical applications.
|