From d084021e06ba1caa1373fbbcf24a8510f43830ab Mon Sep 17 00:00:00 2001
From: Ken Sharp <Ken.Sharp@artifex.com>
Date: Sat, 27 Jan 2024 09:30:30 +0000
Subject: [PATCH] Coverity IDs 414141 & 414145

These are the same problem reported two different ways. I forgot to
remove the arguments to errprintf when I removed the format specifiers
from the string as part of reviewing the pointer printing.

CVE: CVE-2024-29508
Upstream-Status: Backport [https://git.launchpad.net/ubuntu/+source/ghostscript/commit/?h=ubuntu/focal-security&id=22b23aa6de7613a4d9c1da9c84d72427c9d0cf1a]
Upstream commit: https://cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/commit/?id=ff1013a0ab485b66783b70145e342a82c670906a
Signed-off-by: Ashish Sharma <asharma@mvista.com>

 devices/gdevupd.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- a/devices/gdevupd.c
+++ b/devices/gdevupd.c
@@ -1043,8 +1043,7 @@ upd_print_page(gx_device_printer *pdev,
          errprintf(pdev->memory, "CALL-REJECTED upd_print_page(" PRI_INTPTR "," PRI_INTPTR ")\n",
              (intptr_t)udev,(intptr_t) out);
 #else
-         errprintf(pdev->memory, "CALL-REJECTED upd_print_page\n",
-             (intptr_t)udev,(intptr_t) out);
+         errprintf(pdev->memory, "CALL-REJECTED upd_print_page\n");
 #endif
 #endif
 	 return_error(gs_error_undefined);
