Memory allocation error
Status: Beta
Brought to you by:
drewpc
The gstring::create() method only allocates enough
space for the string body, and not the terminating
zero. As a result, the heap gets corrupted.
Similarly, the gstring::append() method should also
account for the terminating zero when it reallocates
space for a bigger string.