]> git.saurik.com Git - wxWidgets.git/commitdiff
test ok in the record reading loop as otherwise we never exit from it if there is...
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 15 Jul 2008 17:31:40 +0000 (17:31 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 15 Jul 2008 17:31:40 +0000 (17:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/tarstrm.cpp

index b763de5a2e1d7796fbd8effb52b7ab21fc97f8e8..7eb827582e3f499dcd1d4b7ca6d3bedf4f0cde5d 100644 (file)
@@ -945,7 +945,7 @@ bool wxTarInputStream::ReadExtendedHeader(wxTarHeaderRecords*& recs)
     size_t recPos, recSize;
     bool ok = true;
 
-    for (recPos = 0; recPos < len; recPos += recSize) {
+    for (recPos = 0; recPos < len && ok; recPos += recSize) {
         char *pRec = buf.data() + recPos;
         char *p = pRec;