From b8bda01581b94e9159533460cfe79436f4d5ac21 Mon Sep 17 00:00:00 2001
From: Michael Vrhel <michael.vrhel@artifex.com>
Date: Mon, 30 Mar 2020 14:47:25 -0700
Subject: [PATCH] Coverity 94826   Add missing offset to buffer size used for
 clist cmd.

---
 base/gxclpath.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/base/gxclpath.c b/base/gxclpath.c
index b2b946d..4a8902d 100644
--- a/base/gxclpath.c
+++ b/base/gxclpath.c
@@ -486,7 +486,8 @@ cmd_write_unknown(gx_device_clist_writer * cldev, gx_clist_state * pcls,
                  sizeof(float) +	/* line width */
                  sizeof(float) +	/* miter limit */
                  3 +		/* bm_tk, op, and rend intent */
-                 sizeof(float) * 2 +  /* opacity/shape alpha */
+                 sizeof(cldev->gs_gstate.alphaisshape) +
+                 sizeof(float) * 2 +  /* ca CA */
                  sizeof(cldev->gs_gstate.alpha)
         ];
         byte *bp = buf;
-- 
1.8.3.1

