[Bug libstdc++/61601] C++11 regex resource exhaustion

timshen at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Feb 1 08:31:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61601

--- Comment #5 from Tim Shen <timshen at gcc dot gnu.org> ---
> cpu exhaustion not eliminated
>
> PoC: (.*{100}{200}findme)

I tried to run:

#include <regex>

using namespace std;

int main (int argc, char *argv[])
{
  string input;
  regex r(argv[1]);

  return 0;

}

Against '(.*{100}{200}findme)' and there's no cpu exhaustion.

Do you have any other testcases?



More information about the Gcc-bugs mailing list