This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Commit: AArch64 sim: Fix off by one error checking for invalid vector array element
- From: Nick Clifton <nickc at redhat dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 18 Mar 2016 17:10:30 +0000
- Subject: Re: Commit: AArch64 sim: Fix off by one error checking for invalid vector array element
- Authentication-results: sourceware.org; auth=none
- References: <87fuvnu9q7 dot fsf at redhat dot com> <87r3f7n8f4 dot fsf at linux-m68k dot org>
Hi Andreas,
>> #define GET_VEC_ELEMENT(REG, ELEMENT, FIELD) \
>> do \
>> { \
>> + if (element >= ARRAY_SIZE (cpu->fr[0].FIELD)) \
>
> s/element/ELEMENT/
Doh! Obvious fix checked in. Thanks for spotting this.
Cheers
Nick