Skip to content

Commit f7fe03e

Browse files
committed
2.5.2
01/06/2015 - Fixed another issue with LDC searching for Android APKs.
1 parent 74e1205 commit f7fe03e

File tree

5 files changed

+22
-5
lines changed

5 files changed

+22
-5
lines changed
40 MB
Binary file not shown.

README.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,4 +234,6 @@ Changelog:
234234
01/06/2015 - Added save as DEX and import .dex files.
235235
--- 2.5.1 ---:
236236
01/06/2015 - Silenced the error connecting to update server for offline mode.
237-
01/06/2015 - Fixed a search function with Android APKs.
237+
01/06/2015 - Fixed a search function with Android APKs.
238+
--- 2.5.1 ---:
239+
01/06/2015 - Fixed another issue with LDC searching for Android APKs.01/06/2015 - Fixed another issue with LDC searching for Android APKs.

src/the/bytecode/club/bytecodeviewer/BytecodeViewer.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@
257257
* -----2.5.1-----:
258258
* 01/06/2015 - Silenced the error connecting to update server for offline mode.
259259
* 01/06/2015 - Fixed a search function with Android APKs.
260+
* -----2.5.2-----:
261+
* 01/06/2015 - Fixed another issue with LDC searching for Android APKs.
260262
*
261263
* @author Konloch
262264
*
@@ -277,7 +279,7 @@ public class BytecodeViewer {
277279
private static ArrayList<String> recentFiles = DiskReader.loadArrayList(filesName, false);
278280
private static ArrayList<String> recentPlugins = DiskReader.loadArrayList(pluginsName, false);
279281
public static boolean runningObfuscation = false;
280-
public static String version = "2.5.1";
282+
public static String version = "2.5.2";
281283
private static long start = System.currentTimeMillis();
282284

283285
public static void main(String[] args) {
@@ -469,7 +471,7 @@ public void run() {
469471
}
470472
}
471473
} catch (Exception e) {
472-
//new the.bytecode.club.bytecodeviewer.api.ExceptionUI(e);
474+
e.printStackTrace();
473475
}
474476
}
475477
};

src/the/bytecode/club/bytecodeviewer/searching/LDCSearch.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,16 @@ public void search(final ClassNode node, final SearchResultNotifier srn,
6060
if (insnNode instanceof LdcInsnNode) {
6161
final LdcInsnNode ldcObject = ((LdcInsnNode) insnNode);
6262
final String ldcString = ldcObject.cst.toString();
63+
String desc2 = method.desc;
64+
try {
65+
desc2 = Type.getType(method.desc).toString();
66+
} catch(java.lang.ArrayIndexOutOfBoundsException e) {
67+
68+
}
6369
if ((exact && ldcString.equals(srchText))
6470
|| (!exact && ldcString.contains(srchText))) {
6571
srn.notifyOfResult(node.name + "." + method.name
66-
+ Type.getType(method.desc).getInternalName()
72+
+ desc2
6773
+ " -> \"" + ldcString + "\" > "
6874
+ ldcObject.cst.getClass().getCanonicalName());
6975
}

src/the/bytecode/club/bytecodeviewer/searching/RegexSearch.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import javax.swing.JPanel;
88
import javax.swing.JTextField;
99

10+
import org.objectweb.asm.Type;
1011
import org.objectweb.asm.tree.ClassNode;
1112
import org.objectweb.asm.tree.MethodNode;
1213

@@ -54,7 +55,13 @@ public void search(final ClassNode node, final SearchResultNotifier srn,
5455
}
5556

5657
if (regexFinder.find(srchText).length > 0) {
57-
srn.notifyOfResult(node.name + "." + method.name + method.desc);
58+
String desc2 = method.desc;
59+
try {
60+
desc2 = Type.getType(method.desc).toString();
61+
} catch(java.lang.ArrayIndexOutOfBoundsException e) {
62+
63+
}
64+
srn.notifyOfResult(node.name + "." + method.name + desc2);
5865
}
5966

6067
}

0 commit comments

Comments
 (0)