зеркало из https://github.com/mozilla/pjs.git
Attempt to fix topcrash bug 54230 by fixing an ABR caused by allocating and copying one fewer bytes than the number indicated by the length. r=javi@netscape.com, dougt@netscape.com sr=mscott@netscape.com
This commit is contained in:
Родитель
3efde3995b
Коммит
94ef702e7f
|
@ -541,7 +541,7 @@ nsPSMSocketInfo::GetPickledStatus(char * *pickledStatusString)
|
|||
if (mPickledStatus)
|
||||
{
|
||||
if (pickledStatusString) {
|
||||
PRInt32 len = *(int*)mPickledStatus;
|
||||
PRInt32 len = *(int*)mPickledStatus + sizeof(int);
|
||||
char *out = (char *)nsMemory::Alloc(len);
|
||||
memcpy(out, mPickledStatus, len);
|
||||
*pickledStatusString = out;
|
||||
|
|
Загрузка…
Ссылка в новой задаче