Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-97250

Use of std::regex_search() can cause a crash due to near-infinite recursion

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Programmability
    • SP Prioritized List

      We use std::regex_search which has known issues (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86164) when ".*" is used as the pattern. We should avoid using it.

      Current usage in shell.. There seem to be a few other usages in the codebase as well.

      See comments for more info.

            Assignee:
            Unassigned Unassigned
            Reporter:
            vishnu.kaushik@mongodb.com Vishnu Kaushik
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: