src/bele.h: try to detect possible size-mismatches

This commit is contained in:
Markus F.X.J. Oberhumer
2023-08-28 00:23:53 +02:00
parent 25a3c109c1
commit d65fea1147
5 changed files with 139 additions and 37 deletions
+1 -2
View File
@@ -43,8 +43,7 @@
// and malicious header fields
// see C 11 standard, Annex K
//
// this limits uncompressed_size to about 640 MiB which is perfectly fine:
// "640 MiB Ought to be Enough for Anyone" --Markus F.X.J. Oberhumer, 1981 ;-)
// this limits uncompressed_size to about 682 MiB (715_128_832 bytes)
**************************************************************************/
ACC_COMPILE_TIME_ASSERT_HEADER(UPX_RSIZE_MAX_MEM == UPX_RSIZE_MAX)