From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 24845 invoked from network); 25 Oct 2021 14:04:59 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 25 Oct 2021 14:04:59 -0000 Received: (qmail 18163 invoked by uid 550); 25 Oct 2021 14:04:56 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 23801 invoked from network); 25 Oct 2021 13:17:35 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=ce46Vv7J0VCLjwuUrKi1CtLFmMOzJdWxFmO2Fue5vx0=; b=ikqwlEIelLeRSEufCUIWK2GXl6fCDjJ2/YniIclwVqsLWYVKF0ma6WUVGiYCCQ2dWr ZPt7aof4rh9Weg5ubbLA+ZMTbFKNUBDsgf9BfJk6Xk5lEjskubf2l7ACmrVeWzyn57Rf Zu9I/ccIyxpOiKjJ61Klw+CIuXfWoM6qsSXhvhSqsFZ8ube2aeyvL37DGB0UqWCI6gKo PaSLFIIpZZeeojcmL2v0y55m4PVby/X7JIJ79be1S7FjMqa9edOkEjOECQg+v975M/iS LkSWaMXxB1TGaPiGOIVAS5fdZa1cEuxU58QCGRKs7gDPJU9RyixCb8U+lYaeqJgZ+7jn dYYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ce46Vv7J0VCLjwuUrKi1CtLFmMOzJdWxFmO2Fue5vx0=; b=qoytML21l5DGTg2ToHsJGKtmqj1fGI3VfVIievC26Aw70F6ASNNhHUPDRl4zfU0jRB QR+Eo92Xvbbfen0ILBnC/j9fqUpzbXBz7o78rB5BQzni/n6FO1dnUsOWCvLdfJ7nzTUr Yzg5AB/ar1J4RFjRt8WjLyBq6+Mys6pX/PuC5haS+Z8uPRS9BfymFFcmerwNKK9mzRB1 wZeODSBnUB/0Tv6hPVXliEx4VccV+A0/Imy3ukpGswHHFT22pS6icg2HpTJuHYqkBlgH zMIVTHQQkEiFnVz96fXCMW34Mv72Qhfr0jWX0wfSn6rG47P5eNSuZ555d0ckFTrdvlA8 5ypg== X-Gm-Message-State: AOAM531bx5B2iMQK1S844oTP84d1YEmxvrlDE6o/371BhuOsBaLhJsqO B/09I6zj6nNNhZUhs/5dGtQ2WZu+uTGDzL4Db1sBqJpZtA== X-Google-Smtp-Source: ABdhPJz4JUdthSXH0sGoGfQDBkbp1eXvOQVI2ujAoOtlj6HbtLlrLAYAD6/gwpN6cCcQVFWE4F7f1ZV/Oeoexb9DsB4= X-Received: by 2002:a05:6512:3f86:: with SMTP id x6mr17182857lfa.616.1635167844358; Mon, 25 Oct 2021 06:17:24 -0700 (PDT) MIME-Version: 1.0 From: Lorenzo Beretta Date: Mon, 25 Oct 2021 15:17:13 +0200 Message-ID: To: musl@lists.openwall.com Content-Type: multipart/alternative; boundary="00000000000082de2505cf2d2e48" Subject: [musl] Re: request: please detect reads from stdin with unflushed --00000000000082de2505cf2d2e48 Content-Type: text/plain; charset="UTF-8" > Suggestion: fix those broken programs! I know, I know... the problem is that they work with glibc and they fail silently with musl, and on top of that I've just discovered that at least netbsd and openbsd do the same as glibc, ie a broken program like #include int main(){ printf("not flushed: "); char line[123]; return fgets(line,sizeof line,stdin) ? 0 : 123; } happens to work!!! What I'm asking is that musl (while technically correct!) helps __detecting__ those programs, possibly as an option ("#ifdef HUMOR_BROKEN_PROGRAMS") PS I'm not subscribed to this mailing list, sorry for not mentioning it the first time --00000000000082de2505cf2d2e48 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
>=C2=A0Suggestion: fix those broken programs!

I know, I know... the problem is that t= hey work with glibc and they fail silently with musl, and on top of that I&= #39;ve just discovered that at least netbsd and openbsd do the same as glib= c, ie a broken program like
#include <stdio.h>
in= t main(){
=C2=A0 =C2=A0 =C2=A0 =C2=A0 printf("not flushed: ");=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 char line[123];
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 return fgets(line,sizeof line,stdin) ? 0 : 123;
}

=
happens to work!!!

What I'm asking = is that musl (while technically correct!) helps __detecting__ those program= s, possibly as an option ("#ifdef HUMOR_BROKEN_PROGRAMS")

<= div>PSI'm not subscr= ibed to this mailing list, sorry for not mentioning it the first time --00000000000082de2505cf2d2e48--