[PATCH 5/6] d3dxof: Check the right offset before dereferencing next byte.
Christian Costa
titan.costa at gmail.com
Thu Mar 8 02:17:02 CST 2012
---
dlls/d3dxof/parsing.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/d3dxof/parsing.c b/dlls/d3dxof/parsing.c
index f40c202..9f426c4 100644
--- a/dlls/d3dxof/parsing.c
+++ b/dlls/d3dxof/parsing.c
@@ -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 == '"')
{
More information about the wine-patches
mailing list