Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Aug 2012 16:27:56 -0700
From:      Adrian Chadd <adrian@freebsd.org>
To:        "Sevan / Venture37" <venture37@gmail.com>
Cc:        freebsd-wireless@freebsd.org
Subject:   Re: ath(4) error: array index 21 is past the end of the array (which contains, 21 elements)
Message-ID:  <CAJ-VmomUB83z41TAmW=rKUoR2cjcsQvcobTZ20z3W23MU8Wj-w@mail.gmail.com>
In-Reply-To: <CAJ-VmonzdvOuU3LFWhsJ%2BBfDgYueX9QfSZfaw3ndaK36gWdXow@mail.gmail.com>
References:  <50391B6A.5010302@gmail.com> <CAJ-VmonzdvOuU3LFWhsJ%2BBfDgYueX9QfSZfaw3ndaK36gWdXow@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Fixed in -HEAD, after checking what the ar9300 TX status descriptor format was.

Thanks!



Adrian


On 26 August 2012 12:57, Adrian Chadd <adrian@freebsd.org> wrote:
> Hm, lemme see whether the descriptor size is wrong or not..
>
>
> Adrian
>
> On 25 August 2012 11:37, Sevan / Venture37 <venture37@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@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
>> To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org"
>>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmomUB83z41TAmW=rKUoR2cjcsQvcobTZ20z3W23MU8Wj-w>