gadomski / las-rs

Read and write ASPRS las files, Rust edition.
MIT License
73 stars 32 forks source link

Added error handling for laz decompression errors. #58

Closed floriankramer closed 1 year ago

floriankramer commented 1 year ago

The library currently panics when loading a malformed laz file. This pr turns the panic into an error.

floriankramer commented 1 year ago

I can't give you the files I had issues on, but I guess just truncating a laz file to e.g. half size should do the trick (as the error returned is there being not enough data to fill a full laz data chunk).