Add missing return value in liblas.hpp

Bug #1850358 reported by Maris Nartiss
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
liblas (Ubuntu)
New
Undecided
Unassigned

Bug Description

Missing return statement in include/liblas/liblas.hpp causes calls to Open to always fail if liblas is compiled without Boost. As liblas src/c_api.cpp does not handle Open failures (returning NULL instead of throwing an exception), it causes a segfault in any application calling LASReader_Create or LASReader_CreateWithHeader.

The issue has been resolved upstream[1], but any new releases incorporating this patch seem to be unlikely[2].

1. https://github.com/libLAS/libLAS/pull/168
2. https://github.com/libLAS/libLAS/issues/146

Gentoo bug: https://bugs.gentoo.org/698846

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.