]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix a bug in the copy stack code (Issue #768)
authorMichael R Sweet <msweet@msweet.org>
Wed, 2 Aug 2023 12:26:59 +0000 (08:26 -0400)
committerMichael R Sweet <msweet@msweet.org>
Wed, 2 Aug 2023 12:26:59 +0000 (08:26 -0400)
CHANGES.md
cups/raster-interpret.c

index 0f50750eb4d0dcb64c6fc2d70fb57ab5c5768f4b..1fa909ef55b6e9e9cd530ee4a3da33ed37099919 100644 (file)
@@ -6,6 +6,7 @@ Changes in CUPS v2.4.7 (TBA)
 
 - Fixed delays in lpd backend (Issue #741)
 - Fixed purging job files via `cancel -x` (Issue #742)
+- Fixed a bug in the PPD command interpretation code (Issue #768)
 
 
 Changes in CUPS v2.4.6 (2023-06-22)
index 97662ec17665ca62faf2aad8a026ece056528ca3..6fcf731b573b324a30ae24d7d7acec77f9874eaa 100644 (file)
@@ -727,7 +727,10 @@ copy_stack(_cups_ps_stack_t *st,   /* I - Stack */
 
   while (c > 0)
   {
-    if (!push_stack(st, st->objs + n))
+    _cups_ps_obj_t     temp;           /* Temporary copy of object */
+
+    temp = st->objs[n];
+    if (!push_stack(st, &temp))
       return (-1);
 
     n ++;