News for hackers. Stuff that matters.
Re:Multiple vulnerabilities in Regexp and String case conver... by TZubiri on Wednesday November 18, 2026 @08:07PM (#50554702)
It should be pretty straightforward to replace regexes with good ole ifs, array acceses, and comparision operators, whether manually or with an LLM. Pretty low hanging fruit to shave off some kilobytes of attack vector
Re:Multiple vulnerabilities in Regexp and String case conver... by preinheimer on Wednesday November 18, 2026 @08:49PM (#50555081)
I think you’re underestimating the complexity of a lot of regular expressions.
Re:Multiple vulnerabilities in Regexp and String case conver... by marcus_holmes on Wednesday November 18, 2026 @08:53PM (#50555107)
Also that a lot of the regexes will be inside Rails code that we can't touch, Gems that need maintaining, etc.
Re:Multiple vulnerabilities in Regexp and String case conver... by TZubiri on Thursday November 19, 2026 @12:13AM (#50556311)
dependencies that themselves are targets for deletion
Re:Multiple vulnerabilities in Regexp and String case conver... by Spivak on Wednesday November 18, 2026 @11:59PM (#50556238)
What you're describing is using a parser generator build to take a regex and turn it into code you can embed into your project. This already exists and you can use it now. https://re2c.org/