ath(4) error: array index 21 is past the end of the array (which contains, 21 elements)

Adrian Chadd adrian at freebsd.org
Mon Aug 27 23:27:57 UTC 2012


Fixed in -HEAD, after checking what the ar9300 TX status descriptor format was.

Thanks!



Adrian


On 26 August 2012 12:57, Adrian Chadd <adrian at freebsd.org> wrote:
> Hm, lemme see whether the descriptor size is wrong or not..
>
>
> Adrian
>
> On 25 August 2012 11:37, Sevan / Venture37 <venture37 at gmail.com> wrote:
>> Hi,
>> On -CURRENT buildkernel fails when WITH_CLANG_IS_CC declared with:
>>
>> /usr/src/sys/modules/ath/../../dev/ath/if_ath_debug.c:184:24: error: array
>> index 21 is past the end of the array (which contains
>>  21 elements) [-Werror,-Warray-bounds]
>>                             eds->ds_hw[20], eds->ds_hw[21]);
>>                                             ^          ~~
>> @/dev/ath/ath_hal/ah_desc.h:229:2: note: array 'ds_hw' declared here
>>         uint32_t        ds_hw[21];      /* includes buf/len */
>>         ^
>> 1 error generated.
>> *** [if_ath_debug.o] Error code 1
>>
>>
>> Attached patch bumps array size to 22 in decleration which stops the error.
>>
>>
>> Sevan
>>
>> _______________________________________________
>> freebsd-wireless at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
>> To unsubscribe, send any mail to "freebsd-wireless-unsubscribe at freebsd.org"
>>


More information about the freebsd-wireless mailing list