Package: file / 1:5.30-1+deb9u3

cherry-pick.FILE5_30-39-geb973428.limit-memory-usage-more-to-satisfy-oss-fuzz.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Subject: Limit memory usage more to satisfy oss-fuzz
Origin: FILE5_30-39-geb973428
Upstream-Author: Christos Zoulas <christos@zoulas.com>
Date: Fri Apr 7 15:07:31 2017 +0000

--- a/src/cdf.c
+++ b/src/cdf.c
@@ -408,7 +408,7 @@
 		if (h->h_master_sat[i] == CDF_SECID_FREE)
 			break;
 
-#define CDF_SEC_LIMIT (UINT32_MAX / (4 * ss))
+#define CDF_SEC_LIMIT (UINT32_MAX / (8 * ss))
 	if ((nsatpersec > 0 &&
 	    h->h_num_sectors_in_master_sat > CDF_SEC_LIMIT / nsatpersec) ||
 	    i > CDF_SEC_LIMIT) {