Marcus Meissner : oleau32: Fix one entry overflow (Coverity).

Alexandre Julliard julliard at wine.codeweavers.com
Wed May 23 08:10:56 CDT 2007


Module: wine
Branch: master
Commit: 46d94653f144c25dec717bd707fea9a577abf61e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=46d94653f144c25dec717bd707fea9a577abf61e

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Tue May 22 21:18:52 2007 +0100

oleau32: Fix one entry overflow (Coverity).

---

 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* strIn, LCID lcid, ULONG dwFlags, DATE* pd
   /* Parse the string into our structure */
   while (*strIn)
   {
-    if (dp.dwCount > 6)
+    if (dp.dwCount >= 6)
       break;
 
     if (isdigitW(*strIn))




More information about the wine-cvs mailing list