External bug 3358 reported the libcore/x-net instance. Manual inspection
turned up another instance in vm, but nothing else in the dalvik package.
Tested by booting sapphire-eng and running the x-net tests.
Bug:
1999244
static int sslCreateAppData(SSL* ssl) {
APP_DATA* data = (APP_DATA*) malloc(sizeof(APP_DATA));
- memset(data, sizeof(APP_DATA), 0);
+ memset(data, 0, sizeof(APP_DATA));
data->aliveAndKicking = 1;
data->waitingThreads = 0;
void* originalPtr = (void*) pExtra->originalPtr;
size_t len = pExtra->originalLen;
- memset(dataBuf, len, 0xdd);
+ memset(dataBuf, 0xdd, len);
free(fullBuf);
return originalPtr;
}
pVm->baseFuncTable = pVm->funcTable;
pVm->funcTable = &gCheckInvokeInterface;
}
-