From 1d8fe6519232de705951d34015f97f910b7e82fb Mon Sep 17 00:00:00 2001 From: tlatorre Date: Mon, 4 Mar 2019 16:07:24 -0600 Subject: fix a bug in zebra_read_next_logical_record() when the size is zero --- src/zebra.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/zebra.c b/src/zebra.c index 24973d7..42b507c 100644 --- a/src/zebra.c +++ b/src/zebra.c @@ -229,7 +229,10 @@ int zebra_read_next_logical_record(zebraFile *z) * length and the LR type; thus a padding record with NWLR=1 occupies * two words. To pad exactly one word, NWLR=0 should be stored, in this * case the LR type 5 is implied without being present in the data." */ - if (size == 0) continue; + if (size == 0) { + z->lr_size = 4; + continue; + } switch (get_bytes(z,offset+1)) { case 1: -- cgit