Skip to content

Commit

Permalink
Merge pull request #363 from tetromino/master
Browse files Browse the repository at this point in the history
Fix heatmap out of bounds memory access
  • Loading branch information
mothur-westcott committed Aug 31, 2017
2 parents e8184a9 + 01a68da commit 720e110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/heatmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ string HeatMap::getPic(vector<SharedRAbundVector*> lookup) {
if (sorted != "none") { sortedLabels = sortSharedVectors(lookup); }

vector<vector<string> > scaleRelAbund;
vector<float> maxRelAbund(lookup[0]->size(), 0.0);
vector<float> maxRelAbund(lookup.size(), 0.0);
float superMaxRelAbund = 0;

for(int i = 0; i < lookup.size(); i++){
Expand Down

0 comments on commit 720e110

Please sign in to comment.