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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user