mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 14:10:32 +00:00
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;
|
||||
|
||||
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] != '=')
|
||||
|
Loading…
Reference in New Issue
Block a user