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…
Reference in New Issue