Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Aug 2012 12:57:40 -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-VmonzdvOuU3LFWhsJ%2BBfDgYueX9QfSZfaw3ndaK36gWdXow@mail.gmail.com>
In-Reply-To: <50391B6A.5010302@gmail.com>
References:  <50391B6A.5010302@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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-VmonzdvOuU3LFWhsJ%2BBfDgYueX9QfSZfaw3ndaK36gWdXow>