Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Mon, 25 Oct 2021 15:17:13 +0200
From: Lorenzo Beretta <>
Subject: Re: request: please detect reads from stdin with unflushed

> 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 <stdio.h>
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

I'm not subscribed to this mailing list, sorry for not mentioning it the
first time

Content of type "text/html" skipped

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.