Skip to content

Commit

Permalink
Convert ag to rzshell (#2916)
Browse files Browse the repository at this point in the history
* `BROKEN=1` for `ag[df]`

Co-authored-by: Anton Kochkov <[email protected]>
  • Loading branch information
imbillow and XVilka authored Aug 22, 2022
1 parent b19edb7 commit 4b38597
Show file tree
Hide file tree
Showing 13 changed files with 2,119 additions and 920 deletions.
5 changes: 4 additions & 1 deletion librz/analysis/diff.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,11 @@ RZ_API int rz_analysis_diff_fcn(RzAnalysis *analysis, RzList /*<RzAnalysisFuncti
}
/* Compare functions with the same name */
rz_list_foreach (fcns1, iter, fcn) {
if (!fcn->fingerprint) {
continue;
}
rz_list_foreach (fcns2, iter2, fcn2) {
if (fcn->name && fcn2->name && strcmp(fcn->name, fcn2->name)) {
if ((fcn->name && fcn2->name && strcmp(fcn->name, fcn2->name) != 0) || !fcn2->fingerprint) {
continue;
}
rz_diff_levenstein_distance(fcn->fingerprint, fcn->fingerprint_size,
Expand Down
Loading

0 comments on commit 4b38597

Please sign in to comment.