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

TSMgmtIntCreate and TSMgmtStringCreate validation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0
    • TS API
    • None

    Description

      When the developer is using TSMgmtIntCreate/TSMgmtStringCreate and put a NULL in the check_regex field in one hand, and put not a NULL in the check_type field, he will cause a crash when someone will try to change the config value using the traffic_line API.
      This is because the recordValidityCheck function in the WebMgmtUtils.cc file will be called and will try to check the regex, but because the regex is NULL the program will exit with SIGSEV on the recordRangeCheck function for example.

      I'm attaching a patch that adds a validation check for those functions.

      Attachments

        1. TS.diff
          1 kB
          Yakov Kopel

        Activity

          People

            zwoop Leif Hedstrom
            kopely Yakov Kopel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: