diff --git a/android_class_shadowing_scanner/cmp_smali.py b/android_class_shadowing_scanner/cmp_smali.py index 1bdfa99..3dd273c 100644 --- a/android_class_shadowing_scanner/cmp_smali.py +++ b/android_class_shadowing_scanner/cmp_smali.py @@ -43,7 +43,12 @@ def get_methods(sm: str, sha256: str = "") -> dict[str, list[list[str]]]: rest[current_meth].append(current_body) current_body = [] current_meth = None - if current_meth is not None and striped and not striped.startswith(".line "): + if ( + current_meth is not None + and striped + and not striped.startswith(".line ") + and not striped.startswith(".param ") + ): current_body.append(striped) if striped.startswith(".method "): if current_meth is not None: diff --git a/run_exp_6.sh b/run_exp_6.sh index ab0a3ec..8196cf5 100644 --- a/run_exp_6.sh +++ b/run_exp_6.sh @@ -51,7 +51,7 @@ sqlite3 ${DB} 'SELECT sha256 FROM data WHERE nb_def_platform_32_classes >= 1 OR N_CHUNK=$(python3 -c "print($(cat ${LIST} | wc -l)//20 + 1)") rm -r "${CHUNK_FOLDER}" mkdir "${CHUNK_FOLDER}" -split -a 2 -d -l "${N_CHUNK}" "${LIST}" "${CHUNK_FOLDER}" +split -a 2 -d -l "${N_CHUNK}" "${LIST}" "${CHUNK_FOLDER}/" worker () { for sha in $(cat "${1}"); do