test ok in the record reading loop as otherwise we never exit from it if there is an invalid character in the record

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-07-15 17:31:40 +00:00
parent 05392dc8c6
commit b161b1549c

View 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;