]> git.saurik.com Git - wxWidgets.git/commit
Fix handling of invalid paths with multiple columns in wxFileName.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 18 Nov 2009 03:45:32 +0000 (03:45 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 18 Nov 2009 03:45:32 +0000 (03:45 +0000)
commit0f506ded1a65f473de9d2810f6ad526741417809
treeeb3ae471ed4495413deda4f94a8d84df4eb378ee
parent76d88590ff9f9e46f0702e409d991d40b8e0ec00
Fix handling of invalid paths with multiple columns in wxFileName.

SplitVolume() didn't handle colons in the initial position correctly which
surprised SetPath() and led to accessing an out-of-range string element. Fix
SplitVolume() and also add a check to SetPath() itself as it seems like it
could be called with a path containing the volume only.

Closes #11453.

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