]> git.saurik.com Git - wxWidgets.git/commit - tests/datetime/datetimetest.cpp
Check for end of string when parsing "%z" in wxDateTime::Format().
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 9 Mar 2012 01:09:20 +0000 (01:09 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 9 Mar 2012 01:09:20 +0000 (01:09 +0000)
commit649148f93e81a7883212a6f98546bbb3aadf7d5d
treece3cac19935ae9522297572a86c3b34544c23381
parentbe88fea9ea2d2d15bec03956efeb388d3f6b0938
Check for end of string when parsing "%z" in wxDateTime::Format().

We could dereference an invalid iterator when parsing "%z", check for this in
the code and add a unit test for this case.

Closes #14075.

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