From f402c8eeaa666caeb7c3e10b4ed0292329266616 Mon Sep 17 00:00:00 2001 From: Cristy Date: Thu, 14 Jun 2018 14:47:57 -0400 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8885 --- MagickCore/cache.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MagickCore/cache.c b/MagickCore/cache.c index a3d580749..cef4a6596 100644 --- a/MagickCore/cache.c +++ b/MagickCore/cache.c @@ -2701,7 +2701,8 @@ static inline MagickModulo VirtualPixelModulo(const ssize_t offset, modulo.quotient=offset/(ssize_t) extent; if (offset < 0L) modulo.quotient--; - modulo.remainder=offset-modulo.quotient*(ssize_t) extent; + modulo.remainder=(ssize_t) (offset-(MagickOffsetType) modulo.quotient* + (ssize_t) extent); return(modulo); } -- 2.40.0