Christian Costa : d3dxof: Check the right offset before dereferencing next byte.
Alexandre Julliard
julliard at winehq.org
Thu Mar 8 14:26:25 CST 2012
Module: wine
Branch: master
Commit: b9353b73ae47dc7cdfcb55f5b7c3a1d8778954a9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b9353b73ae47dc7cdfcb55f5b7c3a1d8778954a9
Author: Christian Costa <titan.costa at gmail.com>
Date: Thu Mar 8 09:17:02 2012 +0100
d3dxof: Check the right offset before dereferencing next byte.
---
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-cvs
mailing list