Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: Fix use-after-free for print -zf and print -sf



On Tue, 10 Feb 2015 12:13:12 +0100
Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> Oops, actually I think I do need it, since I want fout being NULL to
> short circuit the whole if statement to false, and currently it's
> interpreted as if ((fout && (fout != stdout)) ? .. : ..), resulting in
> a call to fflush(NULL) which flushes all open output buffers. I should
> probably have quoted both lines of the if. :)

Yes, I missed that... that's kind of why I talked about rewriting it...

pws



Messages sorted by: Reverse Date, Date, Thread, Author