This repository was archived by the owner on Feb 23, 2018. It is now read-only.
Commit 81194e2
[asm-cherry-pick] Fix findItemByIndex in case of hash collisions
The method `findItemByIndex` only looked at the first item in each
bucket of the `items` hash table.
Also, in case the item was not found, the counter `i` would be at
`items.length`, therefore the access `items[i]` crashed with an
ArrayIndexOutOfBoundsException.
Fixes the issue scala/scala-asm#8.1 parent 4a7bb6a commit 81194e2
1 file changed
+12
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1782 | 1782 | | |
1783 | 1783 | | |
1784 | 1784 | | |
1785 | | - | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
1786 | 1790 | | |
1787 | 1791 | | |
1788 | | - | |
1789 | | - | |
1790 | | - | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
1791 | 1799 | | |
1792 | 1800 | | |
1793 | 1801 | | |
| |||
0 commit comments