Article View: gnu.ghostscript.bug
Article #357Problem with pathforall ( + fix )
From: Patrice Belleville
Date: Wed, 09 Sep 1992 03:47
Date: Wed, 09 Sep 1992 03:47
29 lines
1858 bytes
1858 bytes
There seems to be a bug in the implementation of the pathforall operator [for both gs2.4.1 and gs2.5]. According to the PostScript Language Reference Manual, second edition : "If any of the procedures change the current path, such changes do not alter the behavior of pathforall" [p462]. That is not the case right now. If the procedures invoked during the execution of the pathforall create a path that is longer than the original one, the two paths get mixed up with undesirable results. The following patch seems to solve the problem when applied to file zpath2.c [from the source for ghostscript 2.5] : 31,34d30 < #include "gxfixed.h" < #include "gxmatrix.h" < #include "gzstate.h" < 86d81 < gx_path_share(igs->path); However, not being a ghostscript expert [it was the first time I even looked at the code], I am probably overlooking something (I'm not sure if this path ever gets freed for one thing). Would anyone care to confirm/infirm this, and fix the patch if necessary? -- /***************************************************************************\ |* Patrice Belleville patrice@cs.sfu.ca *| |* --- Simon Fraser University is not responsible for my mistakes. --- *| \***************************************************************************/
Technical Details
Message-ID:
<1992Sep9.034743.20015@cs.sfu.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cs.sfu.ca!patriceShow Full Headers
Complete Article Headers
Newsgroups: gnu.ghostscript.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cs.sfu.ca!patrice From: patrice@cs.sfu.ca (Patrice Belleville) Subject: Problem with pathforall ( + fix ) Message-ID: <1992Sep9.034743.20015@cs.sfu.ca> Followup-To: gnu.ghostscript.bug Summary: bug and a way to fix it Keywords: pathforall, bug Sender: gnulists@ai.mit.edu Organization: CSS, Simon Fraser University, Burnaby, B.C., Canada Distribution: gnu Date: Wed, 9 Sep 1992 03:47:43 GMT Approved: bug-ghostscript@prep.ai.mit.edu Lines: 30