[PATCH] one entry overflow
Marcus Meissner
marcus at jet.franken.de
Tue May 22 15:18:52 CDT 2007
Coverity spotted CID 312.
dwCount can be 6, but the arrays in DATEPARSE have
only 6 entries.
Ciao, Marcus
---
dlls/oleaut32/vartype.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/oleaut32/vartype.c b/dlls/oleaut32/vartype.c
index fd4e56e..fca8f8f 100644
--- a/dlls/oleaut32/vartype.c
+++ b/dlls/oleaut32/vartype.c
@@ -7425,7 +7425,7 @@ HRESULT WINAPI VarDateFromStr(OLECHAR* s
/* Parse the string into our structure */
while (*strIn)
{
- if (dp.dwCount > 6)
+ if (dp.dwCount >= 6)
break;
if (isdigitW(*strIn))
--
1.4.3.4
More information about the wine-patches
mailing list