Blame SOURCES/graphviz-2.40.1-CVE-2018-10196.patch
|
|
6cf174 |
diff --git a/lib/dotgen/conc.c b/lib/dotgen/conc.c
|
|
|
6cf174 |
--- a/lib/dotgen/conc.c
|
|
|
6cf174 |
+++ b/lib/dotgen/conc.c
|
|
|
6cf174 |
@@ -159,7 +159,11 @@ static void rebuild_vlists(graph_t * g)
|
|
|
6cf174 |
|
|
|
6cf174 |
for (r = GD_minrank(g); r <= GD_maxrank(g); r++) {
|
|
|
6cf174 |
lead = GD_rankleader(g)[r];
|
|
|
6cf174 |
- if (GD_rank(dot_root(g))[r].v[ND_order(lead)] != lead) {
|
|
|
6cf174 |
+ if (lead == NULL) {
|
|
|
6cf174 |
+ agerr(AGERR, "rebuiltd_vlists: lead is null for rank %d\n", r);
|
|
|
6cf174 |
+ longjmp(jbuf, 1);
|
|
|
6cf174 |
+ }
|
|
|
6cf174 |
+ else if (GD_rank(dot_root(g))[r].v[ND_order(lead)] != lead) {
|
|
|
6cf174 |
agerr(AGERR, "rebuiltd_vlists: rank lead %s not in order %d of rank %d\n",
|
|
|
6cf174 |
agnameof(lead), ND_order(lead), r);
|
|
|
6cf174 |
longjmp(jbuf, 1);
|