Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001759graphvizDotpublic2009-11-15 18:052011-04-28 04:03
ReporterJohn 
Assigned Toerg 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSx86-Linux-Debian Lenny 5.0OS Version
Summary0001759: dot: width (43241 >= 32768) is too large.
Description



See bug 0001507. It's the same issue, but here is a fix.
The limit on GD/PNG dimensions is 231-1, not 215-1.
The limit on the total pixels is 232-1.
The formats GIF, JPG, and WBMP have limits on each dimension of 215-1 or 216-1.



Dot tends to build long rectangular graphs, where one dimension can exceed the
16-bit limit, while the other fits in a common desktop display.
This means the abort in the file gvrender_gd.c is premature.



Attached is a patch. It attempts to support 31-bit dimensions for PNGs,
where the total size fits in 32-bits. There are multiple code paths
for PNGs due to the plethora of graphviz optional plugins.
This patches the GD and Cairo code paths.
Additional Information

[erg] Same as bug 1818.
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT 
diff -Naur graphviz-2.24.0/plugin/gd/gvrender_gd.c NEW-graphviz-2.24.0/plugin/gd/gvrender_gd.c
--- graphviz-2.24.0/plugin/gd/gvrender_gd.c 2009-06-02 21:10:56.000000000 -0400
+++ NEW-graphviz-2.24.0/plugin/gd/gvrender_gd.c 2009-11-15 17:52:07.000000000
FORMER-ID1819
INPUT-FILEhttp://www.graphviz.org/bugs/b1818.dot [^]
OUTPUT-FILE
STATUS-COMMENTFixed
VERSION     2.24.0
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => erg


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