]> sourceware.org Git - annobin.git/commitdiff
10.02: annocheck: Fix success exit code
authorNick Clifton <nickc@redhat.com>
Fri, 10 Sep 2021 09:56:08 +0000 (10:56 +0100)
committerNick Clifton <nickc@redhat.com>
Fri, 10 Sep 2021 09:56:08 +0000 (10:56 +0100)
annobin-global.h
annocheck/annocheck.c
annocheck/hardened.c

index 8e08788ab6e57e460d48849292f32b955a66c1ae..a8999ec409a97e0cb48e0897b17f2953829f76c9 100644 (file)
@@ -19,7 +19,7 @@ extern "C" {
 /* The version of the package.
    NB/ This number is expected to be in the form "NNnn" where
    "NN" is major version number and "nn" is the minor version number.  */
-#define ANNOBIN_VERSION 1001
+#define ANNOBIN_VERSION 1002
 
 /* The version of the annotation specification supported.  */
 #define SPEC_VERSION  3
index 991a8cf8f0e1b3f09d5b1a8d7a57e94b0d49082e..cdb00a724f59a02cffa7dc554a5fa53880abdc03 100644 (file)
@@ -2104,7 +2104,7 @@ main (int argc, const char ** argv)
        free ((char *) internal->datafile);
       }
   
 if (debug_rpm_dir)
+ if (debug_rpm_dir)
     rmdir (debug_rpm_dir);
 
   if (self_made_tmpdir)
index 3a048f2426e873aa3305d60c78b50c9fd2f186f7..1524fa2572055721a3f1244787880200240c25c7 100644 (file)
@@ -3428,7 +3428,7 @@ check_seg (annocheck_data *    data,
       if (seg->data == NULL
          || entry_point + 3 >= seg->data->d_size)
        /* Fuzzing can create binaries like this.  */
-       return false;
+       return true;
 
       /* We are only interested in PT_LOAD segmments if we are checking
         the entry point instruction.  However we should not check shared
@@ -3493,7 +3493,7 @@ check_seg (annocheck_data *    data,
 
   offset = gelf_getnote (seg->data, offset, & note, & name_off, & data_off);
   if (offset == 0)
-    return false;
+    return true;
 
   if (seg->phdr->p_align != 8)
     {
This page took 0.030866 seconds and 5 git commands to generate.