diff --git a/utils/lcov/geninfo b/utils/lcov/geninfo index 2c534dfc8..9e2faec6b 100755 --- a/utils/lcov/geninfo +++ b/utils/lcov/geninfo @@ -1292,6 +1292,12 @@ sub read_gcno_file($) { next; } + #added because if length is zero the following + #reading process will die, it will read garbage + if ($length == 0) + { + next; + } ($blocks, $filename) = read_gcno_string(*INPUT, $endianness); if ($blocks > 1)