]> granicus.if.org Git - graphviz/commit
fix segfault when node fusing encounters the end of a chain
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 9 Jun 2020 01:05:41 +0000 (18:05 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 9 Jun 2020 01:07:44 +0000 (18:07 -0700)
commit063ba474c1f4effeedead8b974ffd1b84e2aabf9
tree6f97546a05b10ad6f7e63fe95397bf41af5b9e54
parentd63bae508623c88e182b7a6a64971f58c673ef97
fix segfault when node fusing encounters the end of a chain

When processing a chain of nodes, rebuild_vlists() would encounter and then
dereference a NULL pointer on reaching the end of the chain. See included test
case for a sample of how to reproduce this. Fixes #1436.
ChangeLog
lib/dotgen/conc.c
rtest/1436.dot [new file with mode: 0644]
rtest/test_regression.py