Regex: badly needs fuzzing
11–20 of 180 posts
Re: Regex: badly needs fuzzing
#12Another counterexample to the idea that modern C++ written by experts is free of memory safety issues.
If the solution doesnt make it any easier to avoid memory issues (just forces you to avoid them,) its not an attractive solution
Re: Regex: badly needs fuzzing
#13Google's cache of this bug (loads quite slowly for some reason): https://webcache.googleusercontent.com/search?q=cache:mVrrFL...
Re: Regex: badly needs fuzzing
#14Re: Regex: badly needs fuzzing
#15Google's cache of this bug (loads quite slowly for some reason): https://webcache.googleusercontent.com/search?q=cache:mVrrFL...
Re: Regex: badly needs fuzzing
#16Another counterexample to the idea that modern C++ written by experts is free of memory safety issues.
if(STR_COMP(s1, p) >= 0)
{
do{ ++p; }while(*p);
++p;
if(STR_COMP(s1, p) isnot ? next : ++next;
}Re: Regex: badly needs fuzzing
#17They seem to be fuzzing the regex, not just the input it is applied to. This may or may not change the results, but if you're allowing users to input arbitrary regex patterns you have a whole lot of other problems.
Regex engines used in browsers are both fast and hardened against these attacks.
Re: Regex: badly needs fuzzing
#18They seem to be fuzzing the regex, not just the input it is applied to. This may or may not change the results, but if you're allowing users to input arbitrary regex patterns you have a whole lot of other problems.
Re: Regex: badly needs fuzzing
#19Any rust lovers out there: Could I ask you do a benchmark comparison and a fuzz comparison. I'd be genuinely interested in the result and if (as you might hope) the Rust::regex is as fast as boost:regex, and never crashes, that would persuade at least me to finally learn some Rust!
I don't know of a fuzz comparison, but there has been fuzzing done on the rust library without finding anything bad, e.g. see this issue [1].
[0] http://benchmarksgame.alioth.debian.org/u64q/performance.php...
Re: Regex: badly needs fuzzing
#20Any rust lovers out there: Could I ask you do a benchmark comparison and a fuzz comparison. I'd be genuinely interested in the result and if (as you might hope) the Rust::regex is as fast as boost:regex, and never crashes, that would persuade at least me to finally learn some Rust!
If you were interested in performance you probably would not have been using boost::regex to begin with. RE2 is often an order of magnitude faster. You might choose boost if you require backtracking, but that's crazy anyway due to exponential time.