mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-06 07:14:55 -06:00
16.00
This commit is contained in:
committed by
Kornel Lesiński
parent
c20d013055
commit
66ac98bb02
10
C/7zArcIn.c
10
C/7zArcIn.c
@@ -1,5 +1,5 @@
|
||||
/* 7zArcIn.c -- 7z Input functions
|
||||
2015-11-18 : Igor Pavlov : Public domain */
|
||||
2016-03-31 : Igor Pavlov : Public domain */
|
||||
|
||||
#include "Precomp.h"
|
||||
|
||||
@@ -788,13 +788,9 @@ static SRes ReadUnpackInfo(CSzAr *p,
|
||||
numCodersOutStreams += numCoders;
|
||||
if (numCodersOutStreams < numCoders)
|
||||
return SZ_ERROR_UNSUPPORTED;
|
||||
|
||||
packStreamIndex += numPackStreams;
|
||||
if (packStreamIndex < numPackStreams)
|
||||
return SZ_ERROR_UNSUPPORTED;
|
||||
|
||||
if (packStreamIndex > p->NumPackStreams)
|
||||
if (numPackStreams > p->NumPackStreams - packStreamIndex)
|
||||
return SZ_ERROR_ARCHIVE;
|
||||
packStreamIndex += numPackStreams;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user