12345678910111213141516 |
- 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) {
|