From 4308944e2600f5cbaab44e127dec865a129798fa Mon Sep 17 00:00:00 2001 From: Cristy Date: Thu, 1 Feb 2018 18:08:12 -0500 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5867 --- coders/sixel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/sixel.c b/coders/sixel.c index 6ae26c434..39e027199 100644 --- a/coders/sixel.c +++ b/coders/sixel.c @@ -203,7 +203,7 @@ static unsigned char *get_params(unsigned char *p, int *param, int *len) } if (isdigit(*p)) { for (n = 0; isdigit(*p); p++) { - n = n * 10 + (*p - '0'); + n = (int) ((ssize_t) n * 10 + (*p - '0')); } if (*len < 10) { param[(*len)++] = n; -- 2.40.0