Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Korsgaard <peter@korsgaard.com>
To: Yegor Yefremov via buildroot <buildroot@buildroot.org>
Cc: Vincent Jardin <vjardin@free.fr>
Subject: Re: [Buildroot] [PATCH] package/libecoli: fix uninitialized width build failure with -Ofast
Date: Wed, 11 Nov 2026 12:08:56 +0100	[thread overview]
Message-ID: <874idnmxpz.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <20261111080006.3832953-1-yegorslists@googlemail.com> (Yegor Yefremov via buildroot's message of "Wed, 11 Nov 2026 09:00:06 +0100")

>>>>> "Yegor" == Yegor Yefremov via buildroot <buildroot@buildroot.org> writes:

 > libecoli builds with -Werror. With GCC 15 and BR2_OPTIMIZE_FAST, the
 > build fails with:

 >   ../src/editline.c: In function 'ec_editline_complete':
 >   ../src/editline.c:304:22: error: 'width' may be used uninitialized [-Werror=maybe-uninitialized]
 >   ../src/editline.c: In function 'ec_editline_interact':
 >   ../src/editline.c:657:22: error: 'width' may be used uninitialized [-Werror=maybe-uninitialized]

 > This is a real bug: ec_editline_term_size() only writes its width
 > output when both el_get(EL_GETTC) calls succeed, and these two callers
 > neither check its return value nor initialize width beforehand.

 > Add a patch, submitted upstream, that defaults width to 80 columns, as
 > the other ec_editline_term_size() callers already do.

 > This issue has been present since commit 5638ee04c8dd ("package/libecoli:
 > bump version to 0.11.3"), as upstream commit bc90312a4285 ("editline:
 > split in 2 files"), first released in v0.11.0, dropped the width
 > initialization. It therefore affects 2026.08 and later. The 2026.02.x
 > LTS branch still has libecoli 0.10.1 and is not affected.

 > Fixes:
 > https://autobuild.buildroot.org/results/a0a7e17f1a76588932a8a7f8db35a832d540cc69

 > Fixes: 5638ee04c8dddb9ebfb7b047efb574f657e1b052 ("package/libecoli: bump version to 0.11.3")
 > Assisted-by: Claude:claude-opus-5-5
 > Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

      reply	other threads:[~2026-11-11 11:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-11  8:00 [Buildroot] [PATCH] package/libecoli: fix uninitialized width build failure with -Ofast Yegor Yefremov via buildroot
2026-11-11 11:08 ` Peter Korsgaard [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874idnmxpz.fsf@dell.be.48ers.dk \
    --to=peter@korsgaard.com \
    --cc=buildroot@buildroot.org \
    --cc=vjardin@free.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox