Re: efivar-39 build failed against glibc-2.43 and gcc-15.2.0

"Xi Ruoyao" ([email protected] via blfs-dev Mailing List) <[email protected]> Sat, 14 Feb 2026 02:12:49 +0800
Newsgroups gmane.linux.lfs.beyond.devel
Message-ID <[email protected]>
On Sat, 2026-02-14 at 02:01 +0800, Xi Ruoyao wrote:
> On Fri, 2026-02-13 at 11:04 -0600, Douglas R. Reno wrote:
> 
> /* snip */
> 
> > I advise against adding -Wno-discarded-qualifiers because while it may
> > allow the package to build, it's still hiding a type system violation
> > which could lead to undefined behavior or possibly a critical security
> > issue (known as Type Confusion). We'll try to fix these as we come
> > across them. It doesn't look like upstream is aware of this yet, so
> > we'll also let them know about it as well!
> 
> The fix is trivial (comparing to some difficult cases where one pointer
> may point to an immutable string literal or a mutable buffer depending
> on the control flow).
> 
> find_parent_devpath() really modifies the string pointed by the argument
> so the argument shouldn't be a const-qualified pointer at all.
> 
> For other cases just simply add the missing "const" qualifiers.

https://github.com/rhboot/efivar/pull/292

-- 
Xi Ruoyao <[email protected]>

-- 
http://lists.linuxfromscratch.org/sympa/info/blfs-dev
Unsubscribe: See the above information page