]> git.saurik.com Git - wxWidgets.git/commit
Fix crashes in wxDateTime::ParseDate() for some invalid dates.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 16 Nov 2010 22:37:52 +0000 (22:37 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 16 Nov 2010 22:37:52 +0000 (22:37 +0000)
commite4f54cce1e44bb64cb08db5823e08236ae2c87b4
treeed5d0fe0932e35e7dd78f36e8ffe8985c550c8a9
parent3e90629b6b2a902c27bbf655faf124ea492f83ca
Fix crashes in wxDateTime::ParseDate() for some invalid dates.

Parsing an incomplete date with nothing but whitespace and/or date delimiter
characters at the end crashed as we happily went beyond the end of string.

Fix this by not using a loop which didn't check for the iterator validity.

Closes #12685.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66166 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/datetimefmt.cpp
tests/datetime/datetimetest.cpp