From 67244ccf42243e138af24863477458962cbfe705 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 3 Feb 2018 09:12:27 -0500 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5906 --- coders/sixel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/sixel.c b/coders/sixel.c index 89c38f130..1e682fd2f 100644 --- a/coders/sixel.c +++ b/coders/sixel.c @@ -83,7 +83,7 @@ /* Macros */ -#define SIXEL_RGB(r, g, b) (((r) << 16) + ((g) << 8) + (b)) +#define SIXEL_RGB(r, g, b) ((int) (((ssize_t) (r) << 16) + ((g) << 8) + (b))) #define SIXEL_PALVAL(n,a,m) ((int) (((ssize_t) (n) * (a) + ((m) / 2)) / (m))) #define SIXEL_XRGB(r,g,b) SIXEL_RGB(SIXEL_PALVAL(r, 255, 100), SIXEL_PALVAL(g, 255, 100), SIXEL_PALVAL(b, 255, 100)) -- 2.40.0