Yakov Kopel created TS-1328:
-------------------------------

             Summary: TSMgmtIntCreate and TSMgmtStringCreate validation
                 Key: TS-1328
                 URL: https://issues.apache.org/jira/browse/TS-1328
             Project: Traffic Server
          Issue Type: Bug
          Components: TS API
            Reporter: Yakov Kopel
             Fix For: 3.2.1


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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to