diff options
author | Peter Hartmann <peter.hartmann@nokia.com> | 2011-04-19 09:38:06 (GMT) |
---|---|---|
committer | Peter Hartmann <peter.hartmann@nokia.com> | 2011-04-20 08:19:13 (GMT) |
commit | 7a9ed6a1983e318bfb14f0b2db41b3a4e1415529 (patch) | |
tree | bc6c518d52082cee7c70af6952e5ca3971ec3316 /src/network | |
parent | 5888b7d01c05c03bc06a6672a4a8be30bc4192f5 (diff) | |
download | Qt-7a9ed6a1983e318bfb14f0b2db41b3a4e1415529.zip Qt-7a9ed6a1983e318bfb14f0b2db41b3a4e1415529.tar.gz Qt-7a9ed6a1983e318bfb14f0b2db41b3a4e1415529.tar.bz2 |
QNetworkCookie: do not access date string out of bounds
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/access/qnetworkcookie.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/access/qnetworkcookie.cpp b/src/network/access/qnetworkcookie.cpp index c2a6925..52eb345 100644 --- a/src/network/access/qnetworkcookie.cpp +++ b/src/network/access/qnetworkcookie.cpp @@ -737,7 +737,7 @@ static QDateTime parseDateString(const QByteArray &dateString) // 4 digit Year if (isNum && year == -1 - && dateString.length() >= at + 3) { + && dateString.length() > at + 3) { if (isNumber(dateString[at + 1]) && isNumber(dateString[at + 2]) && isNumber(dateString[at + 3])) { |