mirror of
https://github.com/reactos/wine.git
synced 2025-02-10 14:23:52 +00:00
d3dxof: Check the right offset before dereferencing next byte.
This commit is contained in:
parent
bfd56e5bdc
commit
b9353b73ae
@ -605,7 +605,7 @@ static BOOL is_string(parse_buffer* buf)
|
||||
if (*buf->buffer != '"')
|
||||
return FALSE;
|
||||
|
||||
while (pos < buf->rem_bytes && !is_operator(c = *(buf->buffer+pos+1)))
|
||||
while ((pos+1) < buf->rem_bytes && !is_operator(c = *(buf->buffer+pos+1)))
|
||||
{
|
||||
if (c == '"')
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user