1
1
Brian Barrett abbe2ffb9f util: Fix graph allocation size
Fix an allocation bug that could occur on non-LP64 platforms.
match_edges_out is an array of integers representing the
edges of the graph (where vertices are ints), with two ints
for every edge.  The previous code allocated enough space
for num_dges * sizeof(int*), which happens to be the same
as num_edges * 2 * sizeof(int) on LP64 platforms, but would
be wrong on all other platforms.

Fixes: CID 1417754

Signed-off-by: Brian Barrett <bbarrett@amazon.com>
2017-09-17 19:49:26 +00:00
..
2017-02-24 07:09:06 -08:00
2017-09-07 12:19:34 -07:00
2017-09-17 19:49:26 +00:00
2017-08-03 09:18:58 -06:00
2015-06-23 20:59:57 -07:00