From 2325ac2cf2a41db58f1ae5396a158e22ca2fcdc7 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 6 Aug 2019 15:35:41 +0100 Subject: [PATCH] Fix a memory allocation error in the annobin plugin. Resolves: #1737306 --- annocheck/annocheck.c | 2 +- plugin/annobin.cc | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/annocheck/annocheck.c b/annocheck/annocheck.c index f99820b..088cc67 100644 --- a/annocheck/annocheck.c +++ b/annocheck/annocheck.c @@ -32,7 +32,7 @@ ulong verbosity = 0; version_string definitions in annobin.cc. FIXME: This value should be defined in only one place... */ const uint major_version = 8; -const uint minor_version = 77; +const uint minor_version = 78; static ulong num_files = 0; static const char * files[MAX_NUM_FILES]; diff --git a/plugin/annobin.cc b/plugin/annobin.cc index eb6ad75..0e8c309 100644 --- a/plugin/annobin.cc +++ b/plugin/annobin.cc @@ -31,8 +31,8 @@ Also, keep in sync with the major_version and minor_version definitions in annocheck/annocheck.c. FIXME: This value should be defined in only one place... */ -static unsigned int annobin_version = 877; -static const char * version_string = N_("Version 877"); +static unsigned int annobin_version = 878; +static const char * version_string = N_("Version 878"); /* Prefix used to isolate annobin symbols from program symbols. */ #define ANNOBIN_SYMBOL_PREFIX ".annobin_" @@ -1250,7 +1250,7 @@ static attach_item * attach_list = NULL; static void queue_attachment (const char * section_name, const char * group_name) { - attach_item * item = (attach_item *) xmalloc (sizeof item); + attach_item * item = (attach_item *) xmalloc (sizeof * item); item->section_name = concat (section_name, NULL); item->group_name = concat (group_name, NULL); -- 2.43.5