Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001223graphvizOutput Generationpublic2007-12-21 00:002012-01-30 15:44
Assigned Togviz 
PlatformOS*-*-*OS Version
Summary0001223: Crash in pango with fontsize=1

it gives a segfault every time. Obviously it doesn't make sense to set fontsize to "circle", but this was part of a much larger string of graph parameters I was generating from php. Prolly it should ignore the bad fontsize argument or throw an error?
Steps To Reproduce
digraph G {
node [label=" "];
"90" [fontsize="circle" ];
Additional Information
[erg] There are two bugs here. The function late_double which is used
to get the fontsize parameter uses atof which means it can't tell if
the attribute starts with a valid number. It just checks to see if the
is too low and if so, returns the minimum. It would be better to do this
only for numeric input. For garbage input, it should return the default.

The more general error is that pangocairo appears not to like a fontsize
of 1. We should probably use a similar technique here as what is done
in the gd plugin, converting text which is too small into a line or nothing.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
User avatar (0000177)
erg (administrator)
2012-01-30 15:44


- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => user1
2012-01-30 15:44 erg Note Added: 0000177
2012-01-30 15:44 erg Status acknowledged => closed
2012-01-30 15:44 erg Resolution open => fixed
2012-01-30 15:44 erg Description Updated View Revisions
2012-01-30 15:44 erg Steps to Reproduce Updated View Revisions
2012-01-30 15:44 erg Additional Information Updated View Revisions

MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker