From: SourceForge.net <no...@so...> - 2003-05-07 23:27:59
|
Bugs item #734361, was opened at 2003-05-07 16:27 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=734361&group_id=12997 Category: 06. Canvas Postscript Group: None Status: Open Resolution: None Priority: 5 Submitted By: Chris Waters (xtifr) Assigned to: Jeffrey Hobbs (hobbs) Summary: crash in PolygonToPostscript with 2 identical points Initial Comment: Forwarded bug report from Debian Project, submitted (with patch) by Andreas Wilm <wi...@ru...> (for original report, see http://bugs.debian.org/192302): "Create a polygon with two identical points and no outline color (I know this seems to be nonsense, but in my case it was absolutely needed). Do a postscript command on the canvas and you get the core dump (a color NULL pointer is passed on from PolygonToPostscript to Tk_PostscriptColor, where it is referenced)." To reproduce: % canvas .c % pack .c % .c create polygon 10 20 10 20 % .c postscript Debian maintainer comments: I can reproduce the crash on 8.3.5 and 8.4.2. I haven't tested the patch, but it looks straightforward enough. The scenario may seem odd, but it's the kind of thing that could easily arise programatically, i,.e., graphing some data that includes some degenerate cases. Arguably a minor problem, but it should not segfault! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=734361&group_id=12997 |