]> granicus.if.org Git - graphviz/commit
cgraph: replace unchecked agxbuf allocations with alloc helpers
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 30 Apr 2022 23:44:22 +0000 (16:44 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 11 May 2022 05:24:16 +0000 (22:24 -0700)
commit3b3b5fa7e86de571787c3e83a94af1e9917d3e4e
tree84ff3e551b9ff9c11f97fb9c70433be437a1b376
parentb3e1093572e6b84b41f3fc12f5a411b7ed6bd1c2
cgraph: replace unchecked agxbuf allocations with alloc helpers

These allocations are at the core of some work Graphviz does and were not
checked for failure. This change swaps confusing crashes on out-of-memory for a
more graceful exit.
lib/cgraph/agxbuf.c