Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002458graphvizGraph Librariespublic2014-05-22 17:492014-05-23 12:13
Reporterphisama 
Assigned Toerg 
PriorityhighSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformLinuxOSopenSUSEOS Version13.1
Summary0002458: Off-by-one bug in 2.38.0
DescriptionWhile trying to build packages for 2.38.0 I get a warning about array overflow in lib/common/htmltable.c(doBorder):

        case BORDER_TOP|BORDER_LEFT|BORDER_BOTTOM :
            AF[5] = AF[1];
            AF[6] = AF[2];

As AF is defined to hold 6 values this is a clear off-by-one error. What is the right fix for this code?

BTW, this is only a warning but for our builds this warning will make the build fail.
Steps To ReproduceJust compile with -Wall.
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENT
VERSION2.38.0
Attached Files

- Relationships

-  Notes
User avatar (0000746)
erg (administrator)
2014-05-23 12:13

Thanks.

- Issue History
Date Modified Username Field Change
2014-05-22 17:49 phisama New Issue
2014-05-23 12:13 erg Note Added: 0000746
2014-05-23 12:13 erg Assigned To => erg
2014-05-23 12:13 erg Status new => resolved
2014-05-23 12:13 erg Resolution open => fixed


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