Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 185F9F6E1 for ; Thu, 4 Apr 2013 13:31:05 +0000 (UTC) Received: (qmail 73527 invoked by uid 500); 4 Apr 2013 13:27:10 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 65189 invoked by uid 500); 4 Apr 2013 13:26:28 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 51161 invoked by uid 99); 4 Apr 2013 13:23:24 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Apr 2013 13:23:24 +0000 Date: Thu, 4 Apr 2013 13:23:24 +0000 (UTC) From: "Sebb (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HTTPCLIENT-1319) InetAddressUtils.isIPv6HexCompressedAddress does not detect excess groups MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HTTPCLIENT-1319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sebb updated HTTPCLIENT-1319: ----------------------------- Summary: InetAddressUtils.isIPv6HexCompressedAddress does not detect excess groups (was: InetAddressUtils.isIPv6HexCompressedAddress does not detect excess (or insufficient) groups) > InetAddressUtils.isIPv6HexCompressedAddress does not detect excess groups > ------------------------------------------------------------------------- > > Key: HTTPCLIENT-1319 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1319 > Project: HttpComponents HttpClient > Issue Type: Bug > Affects Versions: 4.3 Alpha1 > Reporter: Sebb > Priority: Minor > Fix For: 4.3 Final > > > The IPV6 compressed format regex allows 0 or more hex groups before or after the ::. > This does not detect too many groups (there should be at most 7 surrounding groups in total). > It also allows no groups, i.e "::" which is not permitted AFAIK. > The first issue could be detected by counting the number of ':' characters in the string. > There should be no more than 7 colons. > The empty group could be detected by checking the length of the string - it must be at least 3 characters. > That should probably be tested first as it is relatively cheap. -- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org