> -----Original Message-----
> From: Stephen Hemminger <[email protected]>
> Sent: Wednesday, January 6, 2021 11:56 PM
> To: Jiawei(Jonny) Wang <[email protected]>
> Cc: [email protected]; [email protected]; [email protected];
> [email protected]; Ori Kam <[email protected]>; Slava
> Ovsiienko <[email protected]>; NBU-Contact-Thomas Monjalon
> <[email protected]>; Raslan Darawsheh <[email protected]>;
> [email protected]
> Subject: Re: [dpdk-dev] [PATCH v6] app/testpmd: fix testpmd packets dump
> overlapping
>
> On Wed, 6 Jan 2021 16:13:37 +0200
> Jiawei Wang <[email protected]> wrote:
>
> > + int buf_size = MAX_STRING_LEN;
> > + char print_buf[buf_size];
>
> Don't use dynamic sized array if you don't have to.
> Various static checkers can see look for out of bounds access to fixed size
> array.
Ok, I will change to :
char print_buf[MAX_STRING_LEN];
Thanks.