]> granicus.if.org Git - file/commitdiff
limit memory usage more to satisfy oss-fuzz
authorChristos Zoulas <christos@zoulas.com>
Fri, 7 Apr 2017 15:07:31 +0000 (15:07 +0000)
committerChristos Zoulas <christos@zoulas.com>
Fri, 7 Apr 2017 15:07:31 +0000 (15:07 +0000)
src/cdf.c

index 2fab6dcfa1fe1048b71f84229c04c5126bfc786a..caf94550482780b37cda357965d1c6122904084c 100644 (file)
--- a/src/cdf.c
+++ b/src/cdf.c
@@ -35,7 +35,7 @@
 #include "file.h"
 
 #ifndef lint
-FILE_RCSID("@(#)$File: cdf.c,v 1.98 2017/04/06 19:20:35 christos Exp $")
+FILE_RCSID("@(#)$File: cdf.c,v 1.99 2017/04/07 15:07:31 christos Exp $")
 #endif
 
 #include <assert.h>
@@ -408,7 +408,7 @@ cdf_read_sat(const cdf_info_t *info, cdf_header_t *h, cdf_sat_t *sat)
                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) {