Skip to content
Snippets Groups Projects
Commit 2c077bd0 authored by David Gobbi's avatar David Gobbi Committed by Lucas Givord
Browse files

Fix array write beyond MaxId in vtkSMPMergePoints

Calling SetNumberOfPoints()/SetNumberOfTuples() on the points and
arrays before merging the results ensures that we never index an
array past the MaxId of the array.  We call Resize() first, since
Resize() will preserve existing data on reallocation, while
SetNumberOfTuples() won't preserve data on reallocation, but
will preserve data if the array stays the same size or shrinks.

(cherry picked from commit 7e1f8ef7)
parent 0ac66bad
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment