From fff0af844bfe26556fdda38be609bf3c158d1f91 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Tue, 6 Aug 2013 23:52:38 -0700 Subject: [PATCH] Fix bounds check in sceKernelPrintf(). Wasn't allowing a string ending in %08x. --- Core/HLE/sceKernelMemory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/HLE/sceKernelMemory.cpp b/Core/HLE/sceKernelMemory.cpp index c79c219c61..37b771a6c4 100644 --- a/Core/HLE/sceKernelMemory.cpp +++ b/Core/HLE/sceKernelMemory.cpp @@ -617,7 +617,7 @@ int sceKernelPrintf(const char *formatString) break; case '0': - if (i + 3 >= n || format[i + 1] != '8' || format[i + 2] != 'x') + if (i + 3 > n || format[i + 1] != '8' || format[i + 2] != 'x') supported = false; else {