summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRitt Konstantin <ritt.ks@gmail.com>2010-03-10 11:30:09 (GMT)
committerBenjamin Poulain <benjamin.poulain@nokia.com>2010-03-10 11:30:09 (GMT)
commitab7939145a83884ba618440db9d887b272d48bbe (patch)
treeb209919c070fe89b732b9ffa1b22f9aa8cbcef73 /tests
parent17ab2405fab50497c1f79c8e513fcfdf31979974 (diff)
downloadQt-ab7939145a83884ba618440db9d887b272d48bbe.zip
Qt-ab7939145a83884ba618440db9d887b272d48bbe.tar.gz
Qt-ab7939145a83884ba618440db9d887b272d48bbe.tar.bz2
Avoid asserting when index passed to QZipReader::entryInfoAt is out of boundaries
Reviewed-by: Benjamin Poulain <benjamin.poulain@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qzip/tst_qzip.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/qzip/tst_qzip.cpp b/tests/auto/qzip/tst_qzip.cpp
index 99379b5..f586f5e 100644
--- a/tests/auto/qzip/tst_qzip.cpp
+++ b/tests/auto/qzip/tst_qzip.cpp
@@ -97,6 +97,9 @@ void tst_QZip::basicUnpack()
| QFile::ReadUser | QFile::WriteUser ));
QCOMPARE(zip.fileData("test/test.txt"), QByteArray("content\n"));
+
+ fi = files.at(-1);
+ QVERIFY(!fi.isValid());
}
void tst_QZip::symlinks()