From a24df3057179f81a2624bf3bd3d78113cb2fcc8e Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 20 Jan 2017 10:21:17 +0000 Subject: Fix problem in aarch64 gold sources uncovered by Coverty - using sizeof on a pointer instead of an array. * aarch64.cc (Stub_template_repertoire): Change ST_E_835769_INSNS from a pointer to an array. --- gold/ChangeLog | 5 +++++ gold/aarch64.cc | 10 ++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) (limited to 'gold') diff --git a/gold/ChangeLog b/gold/ChangeLog index 787fb6e..b357d88 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2017-01-20 Nick Clifton + + * aarch64.cc (Stub_template_repertoire): Change ST_E_835769_INSNS + from a pointer to an array. + 2017-01-13 H.J. Lu PR gold/21040 diff --git a/gold/aarch64.cc b/gold/aarch64.cc index b207dcd..b282ccf 100644 --- a/gold/aarch64.cc +++ b/gold/aarch64.cc @@ -784,8 +784,14 @@ Stub_template_repertoire::Stub_template_repertoire() 0x14000000, /* b