~ubuntu-branches/ubuntu/precise/graphviz/precise-security

« back to all changes in this revision

Viewing changes to lib/dotgen/decomp.c

  • Committer: Bazaar Package Importer
  • Author(s): David Claughton
  • Date: 2010-03-24 22:45:18 UTC
  • mfrom: (1.2.7 upstream) (6.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100324224518-do441tthbqjaqjzd
Tags: 2.26.3-4
Add patch to fix segfault in circo. Backported from upstream snapshot
release.  Thanks to Francis Russell for his work on this.
(Closes: #575255)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: decomp.c,v 1.2 2005/03/08 23:34:10 erg Exp $ $Revision: 1.2 $ */
 
1
/* $Id: decomp.c,v 1.5 2009/06/03 01:10:52 ellson Exp $ $Revision: 1.5 $ */
2
2
/* vim:set shiftwidth=4 ts=8: */
3
3
 
4
4
/**********************************************************
79
79
    for (c = 0; c <= 3; c++) {
80
80
        if (vec[c].list)
81
81
            for (i = 0; (e = vec[c].list[i]); i++) {
82
 
                if ((other = e->head) == n)
83
 
                    other = e->tail;
 
82
                if ((other = aghead(e)) == n)
 
83
                    other = agtail(e);
84
84
                if ((ND_mark(other) != Cmark) && (other == UF_find(other)))
85
85
                    search_component(g, other);
86
86
            }