1
1

Merge pull request #4224 from bwbarrett/graph-coverity

util: Fix graph allocation size
Этот коммит содержится в:
Jeff Squyres 2017-09-18 15:04:34 -04:00 коммит произвёл GitHub
родитель 08c93091f7 abbe2ffb9f
Коммит 2e5e7b8891

Просмотреть файл

@ -914,7 +914,7 @@ int opal_bp_graph_solve_bipartite_assignment(const opal_bp_graph_t *g,
goto out;
}
*match_edges_out = malloc(*num_match_edges_out * sizeof(*match_edges_out));
*match_edges_out = malloc(*num_match_edges_out * 2 * sizeof(int));
if (NULL == *match_edges_out) {
*num_match_edges_out = 0;
OPAL_ERROR_LOG(OPAL_ERR_OUT_OF_RESOURCE);