Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-493

Return value from pcre_exec tested incorrectly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.3
    • 2.1.4
    • None
    • None

    Description

      proxy/ControlMatcher.cc:371

      The return value of pcre_exec is checked against -1 for error. However, the return value -1 means "not found" which is not actually an error. If there is an error, different negative values are returned which this logic will interpret as success.

      Attachments

        Activity

          People

            amc Alan M. Carroll
            amc Alan M. Carroll
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: