Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 51614200B50 for ; Fri, 29 Jul 2016 19:36:39 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4FF21160A79; Fri, 29 Jul 2016 17:36:39 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 96105160A6E for ; Fri, 29 Jul 2016 19:36:38 +0200 (CEST) Received: (qmail 51929 invoked by uid 500); 29 Jul 2016 17:36:37 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 51920 invoked by uid 99); 29 Jul 2016 17:36:37 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jul 2016 17:36:37 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 685281A5CE1 for ; Fri, 29 Jul 2016 17:36:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.426 X-Spam-Level: X-Spam-Status: No, score=-0.426 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id shywb93CPNb9 for ; Fri, 29 Jul 2016 17:36:36 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 7D4735F1B3 for ; Fri, 29 Jul 2016 17:36:36 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id B8570E0098 for ; Fri, 29 Jul 2016 17:36:35 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id DFA843A0024 for ; Fri, 29 Jul 2016 17:36:34 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1754555 - /httpd/httpd/trunk/server/gen_test_char.c Date: Fri, 29 Jul 2016 17:36:34 -0000 To: cvs@httpd.apache.org From: wrowe@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160729173634.DFA843A0024@svn01-us-west.apache.org> archived-at: Fri, 29 Jul 2016 17:36:39 -0000 Author: wrowe Date: Fri Jul 29 17:36:34 2016 New Revision: 1754555 URL: http://svn.apache.org/viewvc?rev=1754555&view=rev Log: Leave an emphatic TODO per Jeff's observations Modified: httpd/httpd/trunk/server/gen_test_char.c Modified: httpd/httpd/trunk/server/gen_test_char.c URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/gen_test_char.c?rev=1754555&r1=1754554&r2=1754555&view=diff ============================================================================== --- httpd/httpd/trunk/server/gen_test_char.c (original) +++ httpd/httpd/trunk/server/gen_test_char.c Fri Jul 29 17:36:34 2016 @@ -120,19 +120,18 @@ int main(int argc, char *argv[]) /* Stop for any non-'token' character, including ctrls, obs-text, * and "tspecials" (RFC2068) a.k.a. "separators" (RFC2616) - * XXX: With luck, isascii behaves sensibly on EBCDIC platforms - * and insists on chars that correspond to ASCII equivilants + * XXX: We need to build a specific table for EBCDIC values with + * ASCII equivilants here */ - if (!c || apr_iscntrl(c) || strchr(" \t()<>@,;:\\\"/[]?={}", c)) - || !apr_isascii(c)) { - flags |= T_HTTP_TOKEN_STOP; + if (!c || apr_iscntrl(c) || strchr(" \t()<>@,;:\\\"/[]?={}", c)) { } /* Catch CTRLs other than VCHAR, HT and SP, and obs-text (RFC7230 3.2) * This includes only the C0 plane, not C1 (which is obs-text itself.) - * XXX: Need to confirm this behavior on EBCDIC architecture + * XXX: Need to constrain iscntrl to C0 equivilants in ASCII, + * even on EBCDIC architecture */ - if (!c || (apr_iscntrl(c) && c != '\t' && apr_isascii(c))) { + if (!c || (apr_iscntrl(c) && c != '\t')) { flags |= T_HTTP_CTRLS; }