Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <D9O9W4NIWVAY.PUIU774YC8N9@posteo.net>
Date: Mon, 05 May 2025 13:48:42 +0000
From: "Sertonix" <sertonix@...teo.net>
To: <musl@...ts.openwall.com>
Subject: putchar not returning EOF even though ferror is set


After a function using a FILE stream errors following calls of putchar
(and probably other functions) don't return EOF. This can cause some
busybox applets (like yes(1)) to never stop (when SIGPIPE is ignored in
the environment).

The commit message of e3cd6c5c265c (major stdio overhaul, using
readv/writev, plus other changes) looks like this might have been
intentional.

Does musl consider this something which needs to be changed in busybox
or would it be possible to change musl here?

(If I read the glibc code correctly it checks ferror in some cases?)

Ref https://gitlab.alpinelinux.org/alpine/aports/-/issues/17129

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.