From: Nick Clifton Date: Fri, 10 Sep 2021 09:56:08 +0000 (+0100) Subject: 10.02: annocheck: Fix success exit code X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=84a19cd61259c95bf9d7643a7e95b1e3a9b510c4;p=annobin.git 10.02: annocheck: Fix success exit code --- diff --git a/annobin-global.h b/annobin-global.h index 8e08788..a8999ec 100644 --- a/annobin-global.h +++ b/annobin-global.h @@ -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 diff --git a/annocheck/annocheck.c b/annocheck/annocheck.c index 991a8cf..cdb00a7 100644 --- a/annocheck/annocheck.c +++ b/annocheck/annocheck.c @@ -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) diff --git a/annocheck/hardened.c b/annocheck/hardened.c index 3a048f2..1524fa2 100644 --- a/annocheck/hardened.c +++ b/annocheck/hardened.c @@ -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) {