Juan Lang : wininet: Fix off by one error parsing RFC 850 dates.

Alexandre Julliard julliard at winehq.org
Tue Oct 25 13:50:28 CDT 2011


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

Author: Juan Lang <juan.lang at gmail.com>
Date:   Mon Oct 24 13:21:10 2011 -0700

wininet: Fix off by one error parsing RFC 850 dates.

---

 dlls/wininet/http.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index d1a870b..db85d0b 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -4292,7 +4292,7 @@ static BOOL HTTP_ParseRfc850Date(LPCWSTR value, FILETIME *ft)
             return FALSE;
         }
     }
-    else if (ptr - value <= sizeof(day) / sizeof(day[0]))
+    else if (ptr - value < sizeof(day) / sizeof(day[0]))
     {
         memcpy(day, value, (ptr - value) * sizeof(WCHAR));
         day[ptr - value + 1] = 0;




More information about the wine-cvs mailing list