commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Travis McLeskey (JIRA)" <>
Subject [jira] Created: (CLI-193) StringIndexOutOfBoundsException in HelpFormatter.findWrapPos
Date Sat, 23 Jan 2010 01:59:21 GMT
StringIndexOutOfBoundsException in HelpFormatter.findWrapPos

                 Key: CLI-193
             Project: Commons CLI
          Issue Type: Bug
          Components: CLI-1.x
    Affects Versions: 1.2
            Reporter: Travis McLeskey
            Priority: Critical
             Fix For: 1.3

In the last while loop in HelpFormatter.findWrapPos, it can pass text.length() to text.charAt(int),
which throws a StringIndexOutOfBoundsException. The first expression in that while loop condition
should use a <, not a <=.

This is on line 908 in r779646:

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

View raw message