]> granicus.if.org Git - graphviz/commit
gvplugin_graph: fix unchecked allocation failures
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 26 Jun 2022 20:28:20 +0000 (13:28 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 2 Jul 2022 00:13:06 +0000 (17:13 -0700)
commitbbbca3d0baa624a01c1f028c7bfcc760ae09b4da
tree95c121c37a530b06ffb5209d253ed9bdd52075cd
parentffd29fda27e5b51552a9625acab2a2898c444263
gvplugin_graph: fix unchecked allocation failures

The substring construction in `gvplugin_graph` unfortunately cannot be easily
converted to `strview_t` because it passes pointers to `agxset` which expects a
`'\0'` terminated string. We can at least fix previously unnoticed allocation
failures though.
lib/gvc/gvplugin.c