]> granicus.if.org Git - graphviz/commit
pathplan Pobsopen: call 'calloc' instead of 'malloc' when allocating arrays
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 30 Jul 2022 16:47:54 +0000 (09:47 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 5 Aug 2022 13:52:10 +0000 (06:52 -0700)
commitd3442b4b496dcbe05a3d40c85c515bfd80a4e2d7
tree599c72f36884bfbbeaad25639318430d0f1fe8d9
parent61475dada9375fdea04a72feda88d1aee42b82a5
pathplan Pobsopen: call 'calloc' instead of 'malloc' when allocating arrays

This is the generally preferred way of doing this that avoids various pitfalls,
such as integer overflow during multiplication.
lib/pathplan/cvt.c