[gs-cvs] rev 8038 - trunk/gs/src

alexcher at ghostscript.com alexcher at ghostscript.com
Sat Jun 9 22:01:42 PDT 2007


Author: alexcher
Date: 2007-06-09 22:01:41 -0700 (Sat, 09 Jun 2007)
New Revision: 8038

Modified:
   trunk/gs/src/zfilter.c
Log:
Fix a memory corruption and a SEGV after applying a filter to a closed stream.
Don't replace an closed stream with invalid_file_stream, which is an open,
0-length stream. Bug 688712.

DIFFERENCES:
None. 


Modified: trunk/gs/src/zfilter.c
===================================================================
--- trunk/gs/src/zfilter.c	2007-06-10 01:51:33 UTC (rev 8037)
+++ trunk/gs/src/zfilter.c	2007-06-10 05:01:41 UTC (rev 8038)
@@ -214,7 +214,7 @@
 	    sstrm->is_temp = 1;
 	    break;
 	case t_file:
-	    check_read_known_file(sstrm, sop, return);
+            check_read_known_file_else(sstrm, sop, return, DO_NOTHING);
 	    ialloc_set_space(idmemory, use_space);
 	    goto ens;
 	default:



More information about the gs-cvs mailing list