You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Steve Jiang (JIRA)" <ji...@apache.org> on 2010/05/29 10:25:40 UTC

[jira] Resolved: (TS-290) Content-Type and Content-Language headers may be truncated in body factory responses

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

Steve Jiang resolved TS-290.
----------------------------

         Assignee: Steve Jiang
    Fix Version/s: 2.1.1
       Resolution: Fixed

> Content-Type and Content-Language headers may be truncated in body factory responses
> ------------------------------------------------------------------------------------
>
>                 Key: TS-290
>                 URL: https://issues.apache.org/jira/browse/TS-290
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Core
>            Reporter: Steve Jiang
>            Assignee: Steve Jiang
>             Fix For: 2.1.1
>
>
> In HttpBodyFactory.cc: HttpBodyFactory::fabricate_with_old_api, there are a few ink_strncpys with sizeof(content_language_out) and sizeof(content_type_out).  Those are declared as char array args, but sizeof returns the size of pointer.  This truncates the strings to 4 or 8 bytes depending on platform.
> HTTP/1.1 404 Not Found on Accelerator
> Date: Sat, 03 Apr 2010 07:37:47 GMT
> Connection: close
> Server: ATS/2.1.0
> Cache-Control: no-store
> >>>> Content-Type: text/ht <<<<
> Content-Language: en
> Content-Length: 240
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.