[Liblas-devel] C API problems

esteban70 at libero.it esteban70 at libero.it
Tue Nov 29 06:35:04 EST 2011


Hi, I've found some problems in the C API when calling

LAS_DLL LASReaderH LASReader_Create(const char* filename) 

If filename refers to a non-LAS file then NULL is returned but the stream 
isn't closed. I think a liblas::Cleanup is missing in the exception handling.
If filename doesn't exist then you have a segfault. You can reproduce  this 
bug using the command "lasinfo-old foo".

Excuse me if I'm not filling an issue on github.

Frank


More information about the Liblas-devel mailing list