Module: wine Branch: master Commit: ad3e22d5ee2e4f8855bd722bc6004891bef96950 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ad3e22d5ee2e4f8855bd722bc6...
Author: Juan Lang juan.lang@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;