Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix off-by-one illegal read in MergeConvexHulls (#51)
Fixing an illegal off-by-one read of the costMatrix during the swap of the last column of the costMatrix into its new location. We only need to update the column values from after p1 to the new last column at index costSize - 1 (costSize being already updated to the new reduced size here!). Hence the looping: for (i = p1+1; i < costSize)
- Loading branch information