You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Yakov Kopel (JIRA)" <ji...@apache.org> on 2012/07/02 09:02:46 UTC

[jira] [Updated] (TS-1328) TSMgmtIntCreate and TSMgmtStringCreate validation

     [ https://issues.apache.org/jira/browse/TS-1328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yakov Kopel updated TS-1328:
----------------------------

    Attachment: TS.diff
    
> 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
>
>         Attachments: TS.diff
>
>
> 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