From 19777292a31ee95a9774d8a675704be871afd467 Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Mon, 28 Mar 2016 07:21:12 +0200 Subject: [PATCH] jscript: Fix off-by-one error in decode_dword. Signed-off-by: Sebastian Lackner Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- dlls/jscript/decode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/jscript/decode.c b/dlls/jscript/decode.c index 2c39453db7f..d402d7c9614 100644 --- a/dlls/jscript/decode.c +++ b/dlls/jscript/decode.c @@ -91,7 +91,7 @@ static BOOL decode_dword(const WCHAR *p, DWORD *ret) DWORD i; for(i=0; i<6; i++) { - if(p[i] > sizeof(digits)/sizeof(*digits) || digits[p[i]] == 0xff) + if(p[i] >= sizeof(digits)/sizeof(*digits) || digits[p[i]] == 0xff) return FALSE; } if(p[6] != '=' || p[7] != '=')