Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tries to fix a scenario when a user sends a malformed point cloud (#494)
This PR fixes a rather odd bug. Essentially if a user were to malform a pointcloud by claiming the point cloud to contain only "x,y,z" fields but has a datasize larger than that, the condition iterX == iterX.End() && iterY == iterY.End() && iterZ == iterZ.End(); does not get met. Thus the system will keep iterating till a segfault comes along. This PR enforces better check to make sure we do not segfault. Signed-off-by: Arjo Chakravarty <[email protected]>
- Loading branch information