From fbaef65407334bce74ef8373ac7bdae27c002be7 Mon Sep 17 00:00:00 2001 From: Jean-Romain Date: Tue, 12 Mar 2024 11:40:29 -0400 Subject: [PATCH] Address #66 --- src/LASzip/lasreadpoint.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/LASzip/lasreadpoint.cpp b/src/LASzip/lasreadpoint.cpp index 773fe43..5fba4d8 100644 --- a/src/LASzip/lasreadpoint.cpp +++ b/src/LASzip/lasreadpoint.cpp @@ -388,7 +388,10 @@ BOOL LASreadPoint::seek(const U32 current, const U32 target) } while (delta) { - read(seek_point); + if (!read(seek_point)) + { + return FALSE; + } delta--; } }