Fix crash for another @revskills fuzzed java class

This commit is contained in:
pancake 2015-10-21 23:54:38 +02:00
parent 366ba23b30
commit 2ecc0f9a02

View File

@ -3735,7 +3735,7 @@ R_API RBinJavaAttrInfo* r_bin_java_local_variable_table_attr_new (ut8* buffer, u
attr->info.local_variable_table_attr.local_variable_table = \
r_list_newf (r_bin_java_local_variable_table_attr_entry_free);
for (i = 0; i < attr->info.local_variable_table_attr.table_length; i++) {
if (offset + 10 < sz) {
if (offset + 10 > sz) {
break;
}
cur_location = buf_offset + offset;