[luatex] Luatex 0.47.0 announcement

Taco Hoekwater taco at elvenkind.com
Fri Dec 18 17:37:12 CET 2009



Dohyun Kim wrote:
> 
> On my snow leopard mac os x (x86_64), something is wrong with colorstack.

Yes, there is a bug (missing string duplication in the push function),
patch below.

Thanks for testing,
Taco




Index: source/texk/web2c/luatexdir/pdf/pdfcolorstack.c
===================================================================
--- source/texk/web2c/luatexdir/pdf/pdfcolorstack.c     (revision 3261)
+++ source/texk/web2c/luatexdir/pdf/pdfcolorstack.c     (working copy)
@@ -206,7 +206,7 @@
         if (*str == 0) {
             colstack->page_current = NULL;
         } else {
-            colstack->page_current = str;
+            colstack->page_current = xstrdup(str);
         }
         free(str);
     } else {
@@ -220,7 +220,7 @@
         if (*str == 0) {
             colstack->form_current = NULL;
         } else {
-            colstack->form_current = str;
+            colstack->form_current = xstrdup(str);
         }
         free(str);
     }



More information about the luatex mailing list