Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '7zip/Archive/7z_C/7zExtract.c')
-rwxr-xr-x7zip/Archive/7z_C/7zExtract.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/7zip/Archive/7z_C/7zExtract.c b/7zip/Archive/7z_C/7zExtract.c
index 6ef872c3..aa75659b 100755
--- a/7zip/Archive/7z_C/7zExtract.c
+++ b/7zip/Archive/7z_C/7zExtract.c
@@ -38,6 +38,8 @@ SZ_RESULT SzExtract(
Byte *inBuffer = 0;
size_t processedSize;
#endif
+ if (unPackSize != (size_t)unPackSize)
+ return SZE_OUTOFMEMORY;
*blockIndex = folderIndex;
allocMain->Free(*outBuffer);
*outBuffer = 0;