Return-Path: Delivered-To: apmail-trafficserver-issues-archive@minotaur.apache.org Received: (qmail 15247 invoked from network); 3 Dec 2010 17:58:32 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Dec 2010 17:58:32 -0000 Received: (qmail 73051 invoked by uid 500); 3 Dec 2010 17:58:32 -0000 Delivered-To: apmail-trafficserver-issues-archive@trafficserver.apache.org Received: (qmail 73028 invoked by uid 500); 3 Dec 2010 17:58:32 -0000 Mailing-List: contact issues-help@trafficserver.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@trafficserver.apache.org Delivered-To: mailing list issues@trafficserver.apache.org Received: (qmail 73020 invoked by uid 99); 3 Dec 2010 17:58:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Dec 2010 17:58:32 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Dec 2010 17:58:31 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oB3HwAOD029354 for ; Fri, 3 Dec 2010 17:58:11 GMT Message-ID: <11721833.97091291399090946.JavaMail.jira@thor> Date: Fri, 3 Dec 2010 12:58:10 -0500 (EST) From: "Leif Hedstrom (JIRA)" To: issues@trafficserver.apache.org Subject: [jira] Created: (TS-581) Doc changes for no NULL terminated strings, and one API rename MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Doc changes for no NULL terminated strings, and one API rename -------------------------------------------------------------- Key: TS-581 URL: https://issues.apache.org/jira/browse/TS-581 Project: Traffic Server Issue Type: Bug Components: Documentation Reporter: Leif Hedstrom Fix For: 3.0 We have eliminated the code that allowed a few APIs to assume that strings were NULL terminated, when we really don't make any such promises. Below is the list of APIs that are affected, we should make sure all documentation makes a point that the strings are not NULL terminated, and that the length pointer argument must not be NULL. In particular these two APIs have the wrong (old) documentation: INKHttpHdrMethodGet() INKMimeHdrFieldValueStringGet() -- Leif const char * TSUrlSchemeGet(TSMBuffer bufp, TSMLoc obj, int *length); const char *TSUrlUserGet(TSMBuffer bufp, TSMLoc obj, int *length); const char *TSUrlPasswordGet(TSMBuffer bufp, TSMLoc obj, int *length); const char *TSUrlHostGet(TSMBuffer bufp, TSMLoc obj, int *length); const char *TSUrlPathGet(TSMBuffer bufp, TSMLoc obj, int *length); const char *TSUrlHttpParamsGet(TSMBuffer bufp, TSMLoc obj, int *length); const char *TSUrlHttpQueryGet(TSMBuffer bufp, TSMLoc obj, int *length); const char *TSUrlHttpFragmentGet(TSMBuffer bufp, TSMLoc obj, int *length); const char *TSMimeHdrFieldNameGet(TSMBuffer bufp, TSMLoc hdr, TSMLoc field, int *length); const char *TSHttpHdrMethodGet(TSMBuffer bufp, TSMLoc obj, int *length); const char *TSHttpHdrReasonGet(TSMBuffer bufp, TSMLoc obj, int *length); TSReturnCode TSMimeHdrFieldValueStringGet(TSMBuffer bufp, TSMLoc hdr, TSMLoc field, int idx, const char **value_ptr, int *value_len_ptr); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.