[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen stable-4.5] xen: common: Use unbounded array for symbols_offset.
commit b986072c2bbbe4f64d7f215b6ef834626ad40e42 Author: Ian Campbell <ian.campbell@xxxxxxxxxx> AuthorDate: Thu May 28 14:00:20 2015 +0200 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Thu May 28 14:00:20 2015 +0200 xen: common: Use unbounded array for symbols_offset. Using a singleton array causes gcc5 to report: symbols.c: In function 'symbols_lookup': symbols.c:128:359: error: array subscript is above array bounds [-Werror=array-bounds] symbols.c:136:176: error: array subscript is above array bounds [-Werror=array-bounds] Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Acked-by: Jan Beulich <jbeulich@xxxxxxxx> master commit: 3f82ea62826d4eb06002d8dba475bafcc454b845 master date: 2015-03-20 12:02:03 +0000 --- xen/common/symbols.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/xen/common/symbols.c b/xen/common/symbols.c index bc2fde6..fc7c9e7 100644 --- a/xen/common/symbols.c +++ b/xen/common/symbols.c @@ -19,7 +19,7 @@ #include <xen/spinlock.h> #ifdef SYMBOLS_ORIGIN -extern const unsigned int symbols_offsets[1]; +extern const unsigned int symbols_offsets[]; #define symbols_address(n) (SYMBOLS_ORIGIN + symbols_offsets[n]) #else extern const unsigned long symbols_addresses[]; -- generated by git-patchbot for /home/xen/git/xen.git#stable-4.5 _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |