Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Fix use-after-free for print -zf and print -sf
- X-seq: zsh-workers 34489
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: PATCH: Fix use-after-free for print -zf and print -sf
- Date: Tue, 10 Feb 2015 08:16:56 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=PKtHqo+PzW0+6e7qitD0Pv6dK4i27q10e5pD7KkUGr0=; b=HWncv0p8Y8kEBMwsegYqBPSJLtKuaxtEG2pqfdHhh4x+LL9KIBo08VxSIm0gNgLnJE nV2AD5hYhNYlcZCeQAA7BujU1ZDBc4JP55qYN1/kiCJzDJUY7CdhfwI3/6S0RpHj9Kwg pFj54R6Y4K+UEnX796vNFW3QyOAGdOTjHwbudiNmTxPcJfBxgGkeeMhQREs2epBHEHO+ 0eAdP5A7uDx+v8b6s+g0LQ5/XW7WTqCiw70CB+q+WUkaA1VbK7SUw1uiu1XpVp3HwbOW X6y000UBRhpKE4RFLga0vITpCi8iL4kxMfYE7vpdfRtADR34k03VGpTSvD/N3s+HdtKZ t88A==
- In-reply-to: <1423552346-18827-1-git-send-email-mikachu@gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1423552346-18827-1-git-send-email-mikachu@gmail.com>
On Tue, Feb 10, 2015 at 8:12 AM, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> /* Testing EBADF special-cases >&- redirections */
> - if ((fout != stdout) ? (fclose(fout) != 0) :
> + if (fout && (fout != stdout) ? (fclose(fout) != 0) :
Do I need an extra set of parens here? C precedence rules are fun.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author