From 2c3bee693aca9204b5c138bd3e1fbeff83123c5d Mon Sep 17 00:00:00 2001 From: Chris Liddell Date: Thu, 27 Jan 2022 20:10:39 +0000 Subject: [PATCH] oss-fuzz 44123: zsetcolor() - check we have enough operands --- psi/zcolor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/psi/zcolor.c b/psi/zcolor.c index 64e0b8d0a5..c0d73c280a 100644 --- a/psi/zcolor.c +++ b/psi/zcolor.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2001-2021 Artifex Software, Inc. +/* Copyright (C) 2001-2022 Artifex Software, Inc. All Rights Reserved. This software is provided AS-IS with no warranty, either express or @@ -307,6 +307,7 @@ zsetcolor(i_ctx_t * i_ctx_p) n_numeric_comps = n_comps; /* gather the numeric operands */ + check_op(num_offset + n_numeric_comps); code = float_params(op - num_offset, n_numeric_comps, cc.paint.values); if (code < 0) return code;