From ada492febe0ab62f08f9672f74de4137e5ed747f Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Mon, 9 Sep 2013 22:33:17 -0700 Subject: [PATCH] Fix really stupid heap corruption mistake. --- Core/HLE/sceKernelThread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/HLE/sceKernelThread.cpp b/Core/HLE/sceKernelThread.cpp index 488be08291..a05cc387aa 100644 --- a/Core/HLE/sceKernelThread.cpp +++ b/Core/HLE/sceKernelThread.cpp @@ -770,7 +770,7 @@ private: int size = cur->end - cur->first; if (size >= cur->capacity - 2) { - SceUID *new_data = (SceUID *)realloc(cur->data, cur->capacity * sizeof(SceUID)); + SceUID *new_data = (SceUID *)realloc(cur->data, cur->capacity * 2 * sizeof(SceUID)); if (new_data != NULL) { cur->capacity *= 2;