From 7cdeeadbf4354bc5fd95d1ce69ab12b2cb7f6a00 Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Mon, 21 Aug 2023 22:22:31 +1000 Subject: [PATCH] fuzz: fix pixel_swizzler_fuzzer build --- fuzz/c/std/pixel_swizzler_fuzzer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fuzz/c/std/pixel_swizzler_fuzzer.c b/fuzz/c/std/pixel_swizzler_fuzzer.c index a73a4628..6d625321 100644 --- a/fuzz/c/std/pixel_swizzler_fuzzer.c +++ b/fuzz/c/std/pixel_swizzler_fuzzer.c @@ -234,7 +234,8 @@ fuzz_swizzle_ycck(wuffs_base__io_buffer* src, uint64_t hash) { uint32_t v0 = possible_hv_values[allow_hv3][3 & (hash >> 31)]; uint32_t v1 = possible_hv_values[allow_hv3][3 & (hash >> 33)]; uint32_t v2 = possible_hv_values[allow_hv3][3 & (hash >> 35)]; - bool triangle_filter_for_2to1 = 1 & (hash >> 37); + bool is_rgb_or_cmyk = 1 & (hash >> 37); + bool triangle_filter_for_2to1 = 1 & (hash >> 38); uint32_t width0 = 8 * width_in_mcus * h0; uint32_t width1 = 8 * width_in_mcus * h1; @@ -349,6 +350,7 @@ fuzz_swizzle_ycck(wuffs_base__io_buffer* src, uint64_t hash) { width0, width1, width2, 0, // h0, h1, h2, 0, // v0, v1, v2, 0, // + is_rgb_or_cmyk, // triangle_filter_for_2to1, // wuffs_base__make_slice_u8(scratch_buffer, sizeof(scratch_buffer))); if (status.repr) {