News for hackers. Stuff that matters.
Re:Learn RegEx step by step, from zero to advanced by wruza on Wednesday November 17, 2021 @11:29AM (#29255157)
find + substring indexing

An endless source of off-by-one errors, not to mention buffer overflows, index out of bounds exceptions, accidental negative indexing.

Re:Learn RegEx step by step, from zero to advanced by marginalia_nu on Wednesday November 17, 2021 @12:19PM (#29255853)
How are you both getting buffer overflows and bounds check failures in the same code?

Anyway, these are problems that arise if you don't test the code. In that scenario, regexps are an endless source of unexpected behavior as well, including in some implementations stack overflows and ReDoS attack-surfaces.