Le 12/22/2016 à 02:49 PM, Maxim Uvarov a écrit :
> On debian jessie gcc unable to compile current code
> with error:
> odp_packet.c: In function 'odp_packet_trunc_head':
> odp_packet.c:314:46: error: array subscript is above array bounds
> [-Werror=array-bounds]
> to->buf_hdr.seg[i].len = from->
day, December 22, 2016 4:20 PM
>> To: Savolainen, Petri (Nokia - FI/Espoo) > labs.com>
>> Cc: Mike Holmes ; Maxim Uvarov
>> ; lng-odp
>> Subject: Re: [lng-odp] [PATCHv2] linux-generic: packet: fix buggy compiler
>> error
>>
>> On Thu,
>> Holmes
> >> Sent: Thursday, December 22, 2016 4:08 PM
> >> To: Maxim Uvarov
> >> Cc: lng-odp
> >> Subject: Re: [lng-odp] [PATCHv2] linux-generic: packet: fix buggy
> compiler
> >> error
> >>
> >> On 22 December 2016 at 08:4
arov
>> Cc: lng-odp
>> Subject: Re: [lng-odp] [PATCHv2] linux-generic: packet: fix buggy compiler
>> error
>>
>> On 22 December 2016 at 08:49, Maxim Uvarov
>> wrote:
>>
>> > On debian jessie gcc unable to compile current code
>> > wit
rsday, December 22, 2016 4:08 PM
> > To: Maxim Uvarov
> > Cc: lng-odp
> > Subject: Re: [lng-odp] [PATCHv2] linux-generic: packet: fix buggy
> compiler
> > error
> >
> > On 22 December 2016 at 08:49, Maxim Uvarov
> > wrote:
> >
> > > On
> -Original Message-
> From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of Mike
> Holmes
> Sent: Thursday, December 22, 2016 4:08 PM
> To: Maxim Uvarov
> Cc: lng-odp
> Subject: Re: [lng-odp] [PATCHv2] linux-generic: packet: fix buggy compil
On 22 December 2016 at 08:49, Maxim Uvarov wrote:
> On debian jessie gcc unable to compile current code
> with error:
> odp_packet.c: In function 'odp_packet_trunc_head':
> odp_packet.c:314:46: error: array subscript is above array bounds
> [-Werror=array-bounds]
> to->buf_hdr.seg[i].len = from->
On debian jessie gcc unable to compile current code
with error:
odp_packet.c: In function 'odp_packet_trunc_head':
odp_packet.c:314:46: error: array subscript is above array bounds
[-Werror=array-bounds]
to->buf_hdr.seg[i].len = from->buf_hdr.seg[num + i].len;
The problem is that it breaks compil