Skip to content

Commit

Permalink
Fix off-by-one error (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
tvoc-gs committed Feb 28, 2023
1 parent 12516ba commit 745a681
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public int getCount()
public int getParameterAnnotationCount(int index)
{
return parameterAnnotationCount != null &&
parameterAnnotationCount.length > 0 && index <= parameterAnnotationCount.length
parameterAnnotationCount.length > 0 && index < parameterAnnotationCount.length
? parameterAnnotationCount[index]
: -1;
}
Expand Down
4 changes: 4 additions & 0 deletions docs/md/manual/releasenotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

- Merge classes only when `-optimizeaggressively` is set.

### Bugfixes

- Fix potential `ArrayIndexOutOfBoundsException` when processing Kotlin metadata. (#297)

## Version 7.3.1

### Kotlin support
Expand Down

0 comments on commit 745a681

Please sign in to comment.