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 50956200BC7 for ; Fri, 11 Nov 2016 04:43:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 4E93F160B11; Fri, 11 Nov 2016 03:43:00 +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 8D918160B01 for ; Fri, 11 Nov 2016 04:42:59 +0100 (CET) Received: (qmail 84029 invoked by uid 500); 11 Nov 2016 03:42:58 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 84005 invoked by uid 99); 11 Nov 2016 03:42:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Nov 2016 03:42:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 55E452C0059 for ; Fri, 11 Nov 2016 03:42:58 +0000 (UTC) Date: Fri, 11 Nov 2016 03:42:58 +0000 (UTC) From: "Arul Nedumaran (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (LOGGING-164) RandomStringUtils' random method infinite loop MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 11 Nov 2016 03:43:00 -0000 Arul Nedumaran created LOGGING-164: -------------------------------------- Summary: RandomStringUtils' random method infinite loop Key: LOGGING-164 URL: https://issues.apache.org/jira/browse/LOGGING-164 Project: Commons Logging Issue Type: Bug Reporter: Arul Nedumaran The following code goes into an infinite loop. RandomStringUtils.random(1, 0, 0, false, true, new char[] { 'a' }) I know it doesn't make sense to pass letters=false and then an array, but a bug in the caller will fall into this trap. -- This message was sent by Atlassian JIRA (v6.3.4#6332)