[PATCH] one entry overflow

Marcus Meissner marcus at jet.franken.de
Sun Feb 18 14:18:52 CST 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 1b2199c..79e97ee 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