Re: [PATCH] msvcp60: Avoid a crash, when the ptr in basic_string_char is NULL
5 Jan
2012
5 Jan
'12
5:05 a.m.
Hi,
void __thiscall basic_string_char__Eos(basic_string_char *this, MSVCP_size_t len) { - this->size = len; - this->ptr[len] = 0; + if (this->ptr) { + this->size = len; + this->ptr[len] = 0; + } } This function should not be called if this->ptr is NULL. The bug is somewhere else. I'll take a look on it. Do you have a backtrace?
Piotr
5090
Age (days ago)
5090
Last active (days ago)
0 comments
1 participants
participants (1)
-
Piotr Caban