You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "James Peach (JIRA)" <ji...@apache.org> on 2016/11/14 17:57:58 UTC

[jira] [Commented] (TS-5053) const char **argv passed to TSPluginInit is not null terminated

    [ https://issues.apache.org/jira/browse/TS-5053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15664549#comment-15664549 ] 

James Peach commented on TS-5053:
---------------------------------

Seems reasonable to fix this, but plugins must not use {{ink_args.cc}}. It's not a plugin API.

> const char **argv passed to TSPluginInit is not null terminated
> ---------------------------------------------------------------
>
>                 Key: TS-5053
>                 URL: https://issues.apache.org/jira/browse/TS-5053
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Plugins
>            Reporter: Daniel Xu
>            Assignee: Daniel Xu
>
> See title. Typically **argv is null terminated in other systems. And who are we to question 1000 years of tradition?
> One example of an issue is that {{lib/ts/ink_args.cc}} actually relies on **argv being null terminated. Interesting segfaults occur in plugins usings the ATS argument parser.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)