[gs-devel] t_struct ref from a NULL pointer xefitra
Igor V. Melichev
igor.melichev at artifex.com
Tue Oct 30 08:44:18 PDT 2007
Alex,
> Does anybody know whether it OK to create a t_struct ref from a NULL
> pointer ?
Not OK - you answered this with your second statement :
> do_execstack() applies gs_struct_type_name_string() to the reference
> which SEGV when the ref->value is NULL.
I think when the right way to fix is :
if (internal_accum)
make_istruct(esp, 0, pdev);
else
make_null(esp);
, but I'm not sure how the subsequent code will handle the null.
Igor.
----- Original Message -----
From: "Alex Cherepanov" <alexcher at quadnet.net>
To: "gs-devel" <gs-devel at ghostscript.com>
Sent: Tuesday, October 30, 2007 5:45 PM
Subject: [gs-devel] t_struct ref from a NULL pointer xefitra
> Does anybody know whether it OK to create a t_struct ref from a NULL
> pointer ?
>
> pattern_paint_prepare() creates such a ref but
> do_execstack() applies gs_struct_type_name_string() to the reference
> which SEGV when the ref->value is NULL.
>
>
>
> _______________________________________________
> gs-devel mailing list
> gs-devel at ghostscript.com
> http://www.ghostscript.com/mailman/listinfo/gs-devel
More information about the gs-devel
mailing list