]> git.saurik.com Git - wxWidgets.git/commit
Don't dereference invalid iterator in wxDateTime::ParseDate().
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 4 Jan 2010 10:59:40 +0000 (10:59 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 4 Jan 2010 10:59:40 +0000 (10:59 +0000)
commit462f4f19b5e20055a59ca93cdc19094552a416f1
treeafc4150b9da90ca78cfb679a47f8fb647bdf3b1d
parentba2279bbef3df929e29a66533f000bfcf5d1ac09
Don't dereference invalid iterator in wxDateTime::ParseDate().

If the string passed to this method contained only spaces (possibly 0 of them,
i.e. was empty) we would dereference the end string iterator. Fix this by
adding an explicit test for "p != pEnd".

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