Re:Excellent succinct breakdown of the xz mess, from an Open...
by AwaAwa on Friday April 05, 2024 @12:13PM
(#39944165)
> The syntax error is a single period '.' as the first character on an otherwise empty line of C code.
I believe the point is that given this context, it could/should not be construed as a typo.
Re:Excellent succinct breakdown of the xz mess, from an Open...
by dpkirchner on Friday April 05, 2024 @12:18PM
(#39944228)
If you received this patch from someone you trusted, and noticed the period, would you call it a typo or would you assume it is malicious?
Or is this just an argument over the use of the word "typo" instead of "mistake"? That wouldn't be very useful, IMO.
Re:Excellent succinct breakdown of the xz mess, from an Open...
by dvh on Friday April 05, 2024 @12:19PM
(#39944252)
Very common if you copy paste (using mouse buffer) from midnight commander text editor or any other editor that highlights trailing spaces as dot.
Re:Excellent succinct breakdown of the xz mess, from an Open...
by lenerdenator on Friday April 05, 2024 @12:24PM
(#39944309)
I take it they're not forcing contributors to lint code, then?
Re:Excellent succinct breakdown of the xz mess, from an Open...
by klyrs on Friday April 05, 2024 @12:48PM
(#39944553)
Does your linter look for syntax errors in the content of strings? If so, how would you design a unit test meant to capture syntax errors?
Re:Excellent succinct breakdown of the xz mess, from an Open...
by tedunangst on Friday April 05, 2024 @12:53PM
(#39944593)
Have you tried running lint on a configure.ac or CMakeLists.txt file?
Re:Excellent succinct breakdown of the xz mess, from an Open...
by brenoguim on Friday April 05, 2024 @12:58PM
(#39944638)
For those using editors with mouse, it's very easy to add a character anywhere. Doesn't matter the place.
Re:Excellent succinct breakdown of the xz mess, from an Open...
by ip26 on Friday April 05, 2024 @01:00PM
(#39944660)
The point is that under casual review & in isolation, it's not hard to accept as a typo, but under closer review and knowing what we know now, it's almost certainly part of the attack.
Re:Excellent succinct breakdown of the xz mess, from an Open...
by rany_ on Friday April 05, 2024 @01:10PM
(#39944772)
We only know it's malicious in hindsight. If I was Lasse (original xz maintainer) I could have easily thought it was an innocent typo and that's the point. If it was more convoluted like zero-width Unicode character or misspelling of variable names, it'll be less plausible IMO.
Re:Excellent succinct breakdown of the xz mess, from an Open...
by NekkoDroid on Friday April 05, 2024 @01:42PM
(#39945095)
The thing is, if anyone would have actually realized it (other than Jai) it would have been hopefully fixed. Like... no one would just see that and say "well, must have been a typo" and just leaves it.
Re:Excellent succinct breakdown of the xz mess, from an Open...
by rany_ on Friday April 05, 2024 @02:59PM
(#39945813)
You're missing the years of reputation Jia built so that he'd be given the benefit of the doubt. I don't think anyone would have been too suspicious.
Re:Excellent succinct breakdown of the xz mess, from an Open...
by NekkoDroid on Friday April 05, 2024 @05:40PM
(#39947575)
I am not saying people would have said Jia is acting maliciously, just noone saw this to begin with else it would have been fixed in a separate patch (before the emergancy fix recently by Lasse)
Re:Excellent succinct breakdown of the xz mess, from an Open...
by rany_ on Friday April 05, 2024 @05:50PM
(#39947676)
XZ is just a really boring project. It seems complete for the most part, so I'm not surprised by the lack of scrutiny. It's one of these projects that I would just assume is well maintained.
Re:Excellent succinct breakdown of the xz mess, from an Open...
by ksherlock on Friday April 05, 2024 @01:33PM
(#39945001)
ed man! Ed uses a single . line to end input. You actually can't enter a single '.' (because that wound end your input) but "I was using vi and must have dropped into ex mode or something" on the surface sounds reasonable.
I would certainly attribute that to a typo if I was reviewing the code.