[Liblas-commits] hg: no longer throw an error for VLR lengths that are 0

liblas-commits at liblas.org liblas-commits at liblas.org
Fri Jun 18 12:39:01 EDT 2010


changeset 3f33bd428201 in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=3f33bd428201
summary: no longer throw an error for VLR lengths that are 0

diffstat:

 src/detail/reader/header.cpp |  5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diffs (15 lines):

diff -r 9a061e681940 -r 3f33bd428201 src/detail/reader/header.cpp
--- a/src/detail/reader/header.cpp	Fri Jun 18 10:07:04 2010 -0500
+++ b/src/detail/reader/header.cpp	Fri Jun 18 11:38:55 2010 -0500
@@ -343,10 +343,7 @@
         read_n(vlrh, m_ifs, sizeof(VLRHeader));
 
         uint16_t length = vlrh.recordLengthAfterHeader;
-        if (length < 1)
-        {
-            throw std::domain_error("VLR record length must be at least 1 byte long");
-        } 
+
         std::vector<uint8_t> data;
         data.resize(length);
 


More information about the Liblas-commits mailing list