Uploaded image for project: 'MariaDB Server'
  1. MDEV-5620

CMake option to compile against an external PCRE library

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 10.0.8
    • Fix Version/s: 10.0.9
    • Component/s: None
    • Labels:
      None

      Description

      Under terms of MDEV-5304 Closed we upgraded PCRE to 8.34
      but did not add a CMake options to compile against an
      external PCRE library.
      We should eventually add a CMake option.

      The problem is that using an external PCRE is dangerous
      because of a possible stack overrun, which we fix in the bundled
      PCRE with the patch pcre/maria-patches/pcre_stack_guard.diff.

      There are some options:
      a. wait for the PCRE team to add some built-in means to watch the stack
      b. use the current PCRE version and check the pattern against
      nested parenthesis every time we call pcre_compile().

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                serg Sergei Golubchik
                Reporter:
                bar Alexander Barkov
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 30 minutes
                  1h 30m