This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Commit: AArch64 sim: Fix off by one error checking for invalid vector array element


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]