jscript: Fix off-by-one error in decode_dword.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f9663af1f4
commit
19777292a3
|
@ -91,7 +91,7 @@ static BOOL decode_dword(const WCHAR *p, DWORD *ret)
|
||||||
DWORD i;
|
DWORD i;
|
||||||
|
|
||||||
for(i=0; i<6; 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;
|
return FALSE;
|
||||||
}
|
}
|
||||||
if(p[6] != '=' || p[7] != '=')
|
if(p[6] != '=' || p[7] != '=')
|
||||||
|
|
Loading…
Reference in New Issue