Skip to content

Commit

Permalink
2.5.2
Browse files Browse the repository at this point in the history
01/06/2015 - Completely fixed the search function with Android APKs.
  • Loading branch information
Konloch committed Jan 6, 2015
1 parent f7fe03e commit bf583ec
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 3 deletions.
Binary file modified BytecodeViewer 2.5.2.jar
Binary file not shown.
4 changes: 2 additions & 2 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -235,5 +235,5 @@ Changelog:
--- 2.5.1 ---:
01/06/2015 - Silenced the error connecting to update server for offline mode.
01/06/2015 - Fixed a search function with Android APKs.
--- 2.5.1 ---:
01/06/2015 - Fixed another issue with LDC searching for Android APKs.01/06/2015 - Fixed another issue with LDC searching for Android APKs.
--- 2.5.2 ---:
01/06/2015 - Completely fixed the search function with Android APKs.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ public void search(final ClassNode node, final SearchResultNotifier srn,
String desc2 = method.desc;
try {
desc2 = Type.getType(method.desc).toString();
if(desc2 == null || desc2.equals("null"))
desc2 = method.desc;
} catch(java.lang.ArrayIndexOutOfBoundsException e) {

}
Expand All @@ -113,6 +115,8 @@ public void search(final ClassNode node, final SearchResultNotifier srn,
String desc2 = method.desc;
try {
desc2 = Type.getType(method.desc).toString();
if(desc2 == null || desc2.equals("null"))
desc2 = method.desc;
} catch(java.lang.ArrayIndexOutOfBoundsException e) {

}
Expand Down
12 changes: 11 additions & 1 deletion src/the/bytecode/club/bytecodeviewer/searching/LDCSearch.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ public void search(final ClassNode node, final SearchResultNotifier srn,
String desc2 = method.desc;
try {
desc2 = Type.getType(method.desc).toString();
if(desc2 == null || desc2.equals("null"))
desc2 = method.desc;
} catch(java.lang.ArrayIndexOutOfBoundsException e) {

}
Expand All @@ -80,8 +82,16 @@ public void search(final ClassNode node, final SearchResultNotifier srn,
final Iterator<FieldNode> fields = node.fields.iterator();
while (methods.hasNext()) {
final FieldNode field = fields.next();
String desc2 = field.desc;
try {
desc2 = Type.getType(field.desc).toString();
if(desc2 == null || desc2.equals("null"))
desc2 = field.desc;
} catch(java.lang.ArrayIndexOutOfBoundsException e) {

}
if (field.value instanceof String) {
srn.notifyOfResult(node.name + "." + field.name + field.desc
srn.notifyOfResult(node.name + "." + field.name + desc2
+ " -> \"" + field.value + "\" > field");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ public void search(final ClassNode node, final SearchResultNotifier srn,
String desc2 = method.desc;
try {
desc2 = Type.getType(method.desc).toString();
if(desc2 == null || desc2.equals("null"))
desc2 = method.desc;
} catch(java.lang.ArrayIndexOutOfBoundsException e) {

}
Expand All @@ -112,6 +114,8 @@ public void search(final ClassNode node, final SearchResultNotifier srn,
String desc2 = method.desc;
try {
desc2 = Type.getType(method.desc).toString();
if(desc2 == null || desc2.equals("null"))
desc2 = method.desc;
} catch(java.lang.ArrayIndexOutOfBoundsException e) {

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ public void search(final ClassNode node, final SearchResultNotifier srn,
String desc2 = method.desc;
try {
desc2 = Type.getType(method.desc).toString();
if(desc2 == null || desc2.equals("null"))
desc2 = method.desc;
} catch(java.lang.ArrayIndexOutOfBoundsException e) {

}
Expand Down

0 comments on commit bf583ec

Please sign in to comment.