{"action":"closed","issue":{"url":"https://api.github.com/repos/JesusFreke/smali/issues/307","labels_url":"https://api.github.com/repos/JesusFreke/smali/issues/307/labels{/name}","comments_url":"https://api.github.com/repos/JesusFreke/smali/issues/307/comments","events_url":"https://api.github.com/repos/JesusFreke/smali/issues/307/events","html_url":"https://github.com/JesusFreke/smali/issues/307","id":107321279,"number":307,"title":"Error while disassembing class","user":{"login":"acgmohu","id":2801072,"avatar_url":"https://avatars.githubusercontent.com/u/2801072?v=3","gravatar_id":"","url":"https://api.github.com/users/acgmohu","html_url":"https://github.com/acgmohu","followers_url":"https://api.github.com/users/acgmohu/followers","following_url":"https://api.github.com/users/acgmohu/following{/other_user}","gists_url":"https://api.github.com/users/acgmohu/gists{/gist_id}","starred_url":"https://api.github.com/users/acgmohu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acgmohu/subscriptions","organizations_url":"https://api.github.com/users/acgmohu/orgs","repos_url":"https://api.github.com/users/acgmohu/repos","events_url":"https://api.github.com/users/acgmohu/events{/privacy}","received_events_url":"https://api.github.com/users/acgmohu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-19T09:17:22Z","updated_at":"2015-09-30T17:05:40Z","closed_at":"2015-09-30T17:05:40Z","body":"Hi,\r\n\r\nToday I found some samples which can crash baksmali-2.0.6 and smali-2.0.6.\r\nHere is the dex file.\r\n  \r\n    http://yunpan.cn/cHK5bzcGJbncN  访问密码 07d3\r\n\r\nbaksmali\r\n```   \r\nError occurred while disassembling class Landroid.support.v4.net.TrafficStatsCompat; - skipping class\r\norg.jf.util.ExceptionWithContext: Encountered small uint that is out of range at offset 0xbdc3c\r\n        at org.jf.dexlib2.dexbacked.BaseDexBuffer.readSmallUint(BaseDexBuffer.java:52)\r\n        at org.jf.dexlib2.dexbacked.DexBackedMethodImplementation.getDebugInfo(DexBackedMethodImplementation.java:126)\r\n        at org.jf.dexlib2.dexbacked.DexBackedMethodImplementation.getParameterNames(DexBackedMethodImplementation.java:136)\r\n        at org.jf.dexlib2.dexbacked.DexBackedMethod.getParameterNames(DexBackedMethod.java:153)\r\n        at org.jf.dexlib2.dexbacked.DexBackedMethod$1.iterator(DexBackedMethod.java:131)\r\n        at java.util.AbstractCollection.toArray(Unknown Source)\r\n        at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:258)\r\n        at org.jf.baksmali.Adaptors.MethodDefinition.<init>(MethodDefinition.java:93)\r\n        at org.jf.baksmali.Adaptors.ClassDefinition.writeDirectMethods(ClassDefinition.java:282)\r\n        at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java:112)\r\n        at org.jf.baksmali.baksmali.disassembleClass(baksmali.java:226)\r\n        at org.jf.baksmali.baksmali.access$000(baksmali.java:56)\r\n        at org.jf.baksmali.baksmali$1.call(baksmali.java:150)\r\n        at org.jf.baksmali.baksmali$1.call(baksmali.java:148)\r\n        at java.util.concurrent.FutureTask.run(Unknown Source)\r\n        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)\r\n        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)\r\n        at java.lang.Thread.run(Unknown Source)\r\n\r\n```\r\n\r\nsmali \r\n```\r\nout\\A001.smali[10,0] mismatched input '' expecting END_METHOD_DIRECTIVE\r\nout\\a\\a\\a\\a.smali[13,0] mismatched input '' expecting END_METHOD_DIRECTIVE\r\nout\\android\\content\\pm\\IPackageDataObserver$Stub.smali[18,0] mismatched input '' expecting END_METHOD_DIRECTIVE\r\nout\\a\\a\\a\\c.smali[9,0] mismatched input '' expecting END_METHOD_DIRECTIVE\r\nout\\android\\content\\pm\\IPackageManager$Stub.smali[18,0] mismatched input '' expecting END_METHOD_DIRECTIVE\r\nout\\android\\content\\pm\\PackageDataObserver.smali[12,0] mismatched input '' expecting END_METHOD_DIRECTIVE\r\nout\\android\\content\\pm\\IPackageStatsObserver$Stub.smali[18,0] mismatched input '' expecting END_METHOD_DIRECTIVE\r\nout\\android\\content\\pm\\PackageManager$NameNotFoundException.smali[9,0] mismatched input '' expecting END_METHOD_DIRECTIVE\r\n```"}}