Skip to content

Commit

Permalink
oss-fuzz 44123: zsetcolor() - check we have enough operands
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-liddell committed Jan 28, 2022
1 parent 0cd8240 commit 2c3bee6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 2c3bee6

Please sign in to comment.