You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2013/04/10 01:46:15 UTC

[jira] [Commented] (TS-1806) mgmt/api does not compile on llvm/clang (from trunk)

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

ASF subversion and git services commented on TS-1806:
-----------------------------------------------------

Commit 370fba9bf135df414be885403b8a4720cb35c696 in branch refs/heads/master from James Peach <jp...@apache.org>
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=370fba9 ]

TS-1806: bogus buffer sizing in CfgContextUtils.cc

                
> mgmt/api does not compile on llvm/clang (from trunk)
> ----------------------------------------------------
>
>                 Key: TS-1806
>                 URL: https://issues.apache.org/jira/browse/TS-1806
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Build, Management API
>            Reporter: Igor Galić
>
> {noformat}
> Making all in remote
> make[3]: Entering directory `/home/igalic/src/asf/trafficserver/mgmt/api/remote'
>   CXX    CfgContextImpl.lo
>   CXX    CfgContextManager.lo
>   CXX    CfgContextUtils.lo
> ../CfgContextUtils.cc:352:70: error: sizeof on pointer operation will return size of 'char *' instead of 'char [4098]' [-Werror,-Wsizeof-array-decay]
>       if (pos<sizeof(buf) && (psize = snprintf(buf + pos, sizeof(buf - pos), "%s", delimiter))> 0)
>                                                                  ~~~ ^
> 1 error generated.
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira