Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000477graphvizDotpublic2001-10-01 08:162011-04-28 04:02
ReporterAntti Huima 
Assigned Tonorth 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOS*-*-OS Version
Summary0000477: Bugs in EPSF shapes
Description



There are two bugs related to the "EPSF shapes" in dot.
(1) When EPS files are read in the strings that represent them in memory are
not NUL-terminated although code later assumes so. Causes core dumps.
(2) Dimensions are incorrectly swapped at one point in code
which causes invalid layout decisions.
I've included fixes.
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT 
Bug 1:
<CD>
In epsf_init, change
  contents = EPSF_contents[i] = malloc(statbuf.st_size);
to
  contents = EPSF_contents[i] = malloc(statbuf.st_size + 1);
Add the line:
  contents[statbuf.st_size] = '';
after the call to 'fread'.
</CD>
Bug 2:
Change the
FORMER-ID52
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENTFixed
VERSION     1.7.7/CVS 2001/10/01
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:02 user1 New Issue
2011-04-28 04:02 user1 Assigned To => Stephen North


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