123456789101112131415161718 |
- Subject: Drop the limit lower to satisfy oss-fuzz 4682
- Origin: FILE5_32-65-gfc4b6e34 <https://github.com/file/file/commit/FILE5_32-65-gfc4b6e34>
- Upstream-Author: Christos Zoulas <christos@zoulas.com>
- Date: Tue Dec 19 00:21:21 2017 +0000
- --- a/src/cdf.c
- +++ b/src/cdf.c
- @@ -840,8 +840,8 @@
- return 0;
- }
-
- -#define CDF_SHLEN_LIMIT (UINT32_MAX / 8)
- -#define CDF_PROP_LIMIT (UINT32_MAX / (8 * sizeof(cdf_property_info_t)))
- +#define CDF_SHLEN_LIMIT (UINT32_MAX / 64)
- +#define CDF_PROP_LIMIT (UINT32_MAX / (64 * sizeof(cdf_property_info_t)))
-
- static const void *
- cdf_offset(const void *p, size_t l)
|