mirror of
https://github.com/revanced/smali.git
synced 2025-05-05 09:04:25 +02:00
Fix an issue parsing arrays of primitive types when parsing param lists
git-svn-id: https://smali.googlecode.com/svn/trunk@752 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
parent
f65966da4f
commit
1fd0276b78
@ -243,11 +243,14 @@ import org.jf.dexlib.Code.Format.*;
|
|||||||
{
|
{
|
||||||
int i = typeStartIndex;
|
int i = typeStartIndex;
|
||||||
while (str.charAt(++i) == '[');
|
while (str.charAt(++i) == '[');
|
||||||
while (str.charAt(++i) != ';');
|
|
||||||
|
if (str.charAt(i++) == 'L') {
|
||||||
|
while (str.charAt(i++) != ';');
|
||||||
|
}
|
||||||
|
|
||||||
token.setType(ARRAY_DESCRIPTOR);
|
token.setType(ARRAY_DESCRIPTOR);
|
||||||
token.setText(str.substring(typeStartIndex, i + 1));
|
token.setText(str.substring(typeStartIndex, i));
|
||||||
token.setStopIndex(baseToken.getStartIndex() + i);
|
token.setStopIndex(baseToken.getStartIndex() + i - 1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user