Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZD14vr35ZF2k+fd/@fuz.su>
Date: Mon, 17 Apr 2023 18:50:06 +0200
From: Robert Clausecker <fuz@....su>
To: musl@...ts.openwall.com
Subject: getpwuid() calls getline() which may be redefined

Greetings,

I'm the maintainer of schilytools [1], a suite of tools including
cdrecord, mkisofs, star, smake, and others.  To produce Linux
binary releases for our users, I investigated building static
binaries with musl and found that the star command experienced
problems [3]: when built with

    smake LINKMODE=static LDOPTX=-static INS_RBASE=/opt/schily SHLIB_BUILD=\#

the program hangs reading from stdin.  With the help of psykose
from your IRC channel, we found that this is due to getpwuid()
calling getline(), a symbol which this program uses for a custom
function with a POSIX-incompatible signature.  This use of the
getline() symbol dates back to UNOS [2], an early UNIX close.

We'll try to work around this issue, likely by renaming our
getline() to something else.  I have filed this bug report with
you so you may decide if you wish to route the getline() call
through an internal symbol alias, proofing your library against
incompatible external redefinitions.

Yours,
Robert Clausecker

[1]: https://codeberg.org/schilytools/schilytools
[2]: https://en.wikipedia.org/wiki/UNOS_(operating_system)
[3]: https://codeberg.org/schilytools/schilytools/issues/31

-- 
()  ascii ribbon campaign - for an 8-bit clean world 
/\  - against html email  - against proprietary attachments

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.