tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

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



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
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index