Re: [PATCH 1/3] gcc: Add missing parentheses around ternary operator

David Holland <[email protected]>
Newsgroups gmane.os.netbsd.devel.toolchain
Message-ID <[email protected]>
On Tue, Aug 31, 2021 at 10:09:16PM +0700, Robert Elz wrote:
 >   | DoS attack on calendar -a? That kind of thing was the motivation for
 >   | the restricted mode in the first place.
 > 
 > Yes, I know why we'd want to (and now do again) use O_NOCTTY, I was just
 > explaining why this operator precedence bug had good unnoticed (and was
 > harmless) for the past 15 years.

Well, yes, but that's the scenario where you'd run cpp on a terminal :-)

I mean, the other reason it's harmless is that O_NOCTTY doesn't
actually do anything.

-- 
David A. Holland
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.