Skip to content

Commit

Permalink
Fixed overflow bug when loading large PLY files (#2715)
Browse files Browse the repository at this point in the history
  • Loading branch information
pierotofy authored and taketwo committed Dec 15, 2018
1 parent f3dac94 commit 26504dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io/src/ply_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ pcl::PLYReader::vertexEndCallback ()
{
cloud_->point_step = vertex_offset_before_;
cloud_->row_step = cloud_->point_step * cloud_->width;
cloud_->data.resize (cloud_->point_step * cloud_->width * cloud_->height);
cloud_->data.resize (static_cast<size_t>(cloud_->point_step) * cloud_->width * cloud_->height);
}
++vertex_count_;
}
Expand Down

0 comments on commit 26504dd

Please sign in to comment.