News for hackers. Stuff that matters.
Re:Stranger Strings: An exploitable flaw in SQLite by admax88qqq on Tuesday October 25, 2022 @11:21AM (#33331811)
Boundary Value tests are standard practice when doing extensive testing.

Bugs rarely occur for typical input values but more often occur at the "boundaries" or limits of the input domain.

That being said I don't really fault SQlites testing here.

The key takeaway for me is that even with exhaustive testing you can still have security issues like this, so perhaps what is needed is a language or methodology change.

If SQLite, a quality codebase with exhaustive tests, can have memory vulnerabilities, maybe we need to leave C behind.

Re:Stranger Strings: An exploitable flaw in SQLite by ghoward on Tuesday October 25, 2022 @11:24AM (#33331841)
SQLite is used in places that Rust has no compiler for and that no other language has a compiler for.

One severe CVE in about 20 years is no reason to rewrite in another language and remove support for some platforms.

Re:Stranger Strings: An exploitable flaw in SQLite by nicoburns on Tuesday October 25, 2022 @11:48AM (#33332197)
In the long term, I hope C stops being the default language that hardware vendors provide for their hardware.
Re:Stranger Strings: An exploitable flaw in SQLite by ghoward on Tuesday October 25, 2022 @11:50AM (#33332222)
Me too, but I also hope Rust is not that default language.
Re:Stranger Strings: An exploitable flaw in SQLite by threatofrain on Tuesday October 25, 2022 @01:08PM (#33333345)
Just how many machines are we talking about? Does anyone have estimates?
Re:Stranger Strings: An exploitable flaw in SQLite by ghoward on Tuesday October 25, 2022 @01:36PM (#33333705)
Probably every Airbus A350 XWB and a lot of GM, Nissan, and Suzuki cars. Maybe also a few or a lot of General Electric products. [1]

The Library of Congress also recommends it for preservation of digital content, which would be harder if Rust compilers were lost. If all C89 compilers were lost, it would be much more simple to create a new one to compile SQLite than it would be to recreate a Rust compiler.

[1]: https://www.sqlite.org/famous.html

Re:Stranger Strings: An exploitable flaw in SQLite by admax88qqq on Thursday October 27, 2022 @01:48PM (#33361276)
I'm not saying we need to rewrite SQLite and I'm not sure why everyone is assuming I suggested rust.

But people need to consider how much testing SQLite did and still hit memory vulnerabilities when they consider picking up C for a new project.

Re:Stranger Strings: An exploitable flaw in SQLite by chasil on Tuesday October 25, 2022 @01:01PM (#33333239)
Your problem is that you need to replicate the DO-178B certification in Rust:

"I’m going to write tests to bring SQLite up to the quality of 100% MCDC, and that took a year of 60 hour weeks. That was hard, hard work."

Whatever comes out of Rust will be much worse until compliance is achieved. That's going to take substantial time.