]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwarflint: Fix SEGV in marking invalid directory as used
authorPetr Machata <pmachata@redhat.com>
Mon, 16 Mar 2009 13:59:40 +0000 (14:59 +0100)
committerPetr Machata <pmachata@redhat.com>
Mon, 16 Mar 2009 13:59:40 +0000 (14:59 +0100)
* Also tune displayed messages to sink mc_line | mc_header | mc_acc_bloat
  instead of mere mc_line | mc_header.

src/dwarflint.c

index 14b06484854988c6b583af9da335165ea02dec92..46b56c635eee84818c8cbd28f1ab5d9a1be02d07 100644 (file)
@@ -452,7 +452,8 @@ main (int argc, char *argv[])
       message_cri_and (&warning_criteria,
                       &(struct message_term){mc_none, mc_strings});
       message_cri_and_not (&warning_criteria,
-                          &(struct message_term){mc_line | mc_header, mc_none});
+                          &(struct message_term)
+                           {mc_line | mc_header | mc_acc_bloat, mc_none});
     }
 
   if (be_tolerant)
@@ -4857,7 +4858,7 @@ check_line_structural (struct section_data *data,
            /* Consumer might choke on that.  */
            retval = false;
          }
-       if (*ptr != 0)
+       else if (*ptr != 0)
          include_directories.dirs[*ptr - 1].used = true;
        return true;
       }