[oe] [meta-networking][PATCH 5/5] ippool: Fix strncpy -Wformat-truncation warning

Khem Raj raj.khem at gmail.com
Fri Dec 27 08:48:29 UTC 2019


On Fri, Dec 27, 2019 at 12:12 AM Adrian Bunk <bunk at stusta.de> wrote:
>
> On Thu, Dec 26, 2019 at 07:56:39PM -0800, Khem Raj wrote:
> >...
> > +--- a/cli/cli_readline.c
> > ++++ b/cli/cli_readline.c
> > +@@ -261,6 +261,11 @@ static void cli_rl_display_wrapped_text(
> > +     if (left_margin == 0) {
> > +             left_margin = 3;
> > +     }
> > ++
> > ++    if (left_margin >= strlen(text_buf)) {
> > ++            left_margin = strlen(text_buf);
> > ++    }
> >...
>
> This doesn't make sense, text_buf is an uninitialized variable.
>

I had it replaced with 128 already, this patch can be ignored

> cu
> Adrian


More information about the Openembedded-devel mailing list