named-regexp
  1. named-regexp
  2. REGEX-7

NamedMatcher.namedGroups() causes IndexOutOfBoundsException

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.1.2
    • Labels:
      None

      Description

      Upon calling NamedMatcher.namedGroups(), an IndexOutOfBoundsException occurs.

        Activity

        Hide
        Anthony Trinh [Administrator] added a comment - - edited

        namedGroups() tried to iterate over the current list of group names but used an invalid group index calculation to get the max index. The loop iterator eventually hit an index beyond the actual list size.

        It's fixed in commit 972bb6a5d7b84bfa06271ed168296003d6d9c6b8.

        Show
        Anthony Trinh [Administrator] added a comment - - edited namedGroups() tried to iterate over the current list of group names but used an invalid group index calculation to get the max index. The loop iterator eventually hit an index beyond the actual list size. It's fixed in commit 972bb6a5d7b84bfa06271ed168296003d6d9c6b8 .

          People

          • Assignee:
            Anthony Trinh [Administrator]
            Reporter:
            Anthony Trinh [Administrator]
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 1 hour
              1h

                Development