[gs-cvs] rev 6930 - trunk/gs/src
dan at ghostscript.com
dan at ghostscript.com
Tue Jul 25 22:03:57 PDT 2006
Author: dan
Date: 2006-07-25 22:03:57 -0700 (Tue, 25 Jul 2006)
New Revision: 6930
Modified:
trunk/gs/src/zfunc0.c
Log:
Fix for CET test file 12-14c.ps. This file was seg faulting.
The cause was some uniniitalized pointers that were being
freed when given invalid function parameters. (The test file
was verifying the handling of invalid functions.)
Modified: trunk/gs/src/zfunc0.c
===================================================================
--- trunk/gs/src/zfunc0.c 2006-07-25 18:29:43 UTC (rev 6929)
+++ trunk/gs/src/zfunc0.c 2006-07-26 05:03:57 UTC (rev 6930)
@@ -39,9 +39,8 @@
int code;
*(gs_function_params_t *) & params = *mnDR;
- params.Encode = 0;
- params.Decode = 0;
- params.Size = 0;
+ params.Encode = params.Decode = params.Size =
+ params.pole = params.array_step = params.stream_step = NULL;
if ((code = dict_find_string(op, "DataSource", &pDataSource)) <= 0)
return (code < 0 ? code : gs_note_error(e_rangecheck));
switch (r_type(pDataSource)) {
More information about the gs-cvs
mailing list