|
From: | Florian Weimer |
Subject: | Why does close_stdout close stdout and stderr? |
Date: | Mon, 29 Apr 2019 21:45:26 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
I get that error checking is important. But why not just use ferror and fflush? Closing the streams is excessive and tends to introduce use-after-free issues, as evidenced by the sanitizer workarounds. Thanks, Florian
[Prev in Thread] | Current Thread | [Next in Thread] |