From 3113083edeff29c67804568c496d8e2c771478e2 Mon Sep 17 00:00:00 2001 From: Faker Moatamri Date: Fri, 24 Apr 2009 11:14:10 +0200 Subject: [PATCH] bug 377: --lcov-report not working fully --- utils/lcov/geninfo | 6 ++++++ 1 file changed, 6 insertions(+) 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)