Fix a crash when parsing a URL with username and port, but no password
authorThiago Macieira <thiago.macieira@intel.com>
Tue, 8 May 2012 20:31:12 +0000 (13:31 -0700)
committerQt by Nokia <qt-info@nokia.com>
Thu, 10 May 2012 00:39:30 +0000 (02:39 +0200)
commit75552c8f62dcfb8012c306b37c79ec629448d780
treea2568f71173982feb3e34250f1a3d9fc25dbd034
parentff3a2ab24259d623aeb15d596a1c3be5f683579d
Fix a crash when parsing a URL with username and port, but no password

This was crashing because the ':' was found past the end of the
username, causing the recoder to run from position 22 to 11, via the
long way around the memory.

Change-Id: Ic1ae596f34f7db857fb4210294974fb5a6adf691
Reviewed-by: Alexis Menard <alexis.menard@openbossa.org>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/corelib/io/qurl.cpp
tests/auto/corelib/io/qurl/tst_qurl.cpp