Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert ag to rzshell #2916

Merged
merged 56 commits into from
Aug 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
c2674dc
Convert `ag` commands to the rzshell
XVilka Jun 29, 2022
3646895
fix
imbillow Aug 13, 2022
7510c07
`agw`
imbillow Aug 13, 2022
344f748
x `rz_core_analysis_datarefs`
imbillow Aug 13, 2022
2492860
`rz_core_analysis_datarefs` -> `rz_core_analysis_datarefs`
imbillow Aug 14, 2022
225ef46
unify `rz_core_analysis_callgraph`
imbillow Aug 14, 2022
0ed0cff
fix
imbillow Aug 14, 2022
fdb0970
fix
imbillow Aug 14, 2022
06c99ab
fix
imbillow Aug 14, 2022
b0863c5
fix
imbillow Aug 14, 2022
75cc632
xxx
imbillow Aug 14, 2022
481404f
fix `agn` `agw`
imbillow Aug 14, 2022
4d68eea
fix
imbillow Aug 14, 2022
e455383
rename
imbillow Aug 14, 2022
334b100
fix tests command
imbillow Aug 14, 2022
0eb629f
fix `agd`
imbillow Aug 14, 2022
c9a1fdc
fix tests
imbillow Aug 14, 2022
35762e9
fix `agx`
imbillow Aug 14, 2022
b337d75
fix json tests
imbillow Aug 14, 2022
1407437
rename
imbillow Aug 14, 2022
be7998e
doxygen
imbillow Aug 14, 2022
63c89e5
fix leak
imbillow Aug 14, 2022
63a4a0a
cleanup comments
imbillow Aug 15, 2022
04fcd89
fix
imbillow Aug 15, 2022
bc69418
`graph_print` -> `rz_core_graph_print` as a RZ_IPI
imbillow Aug 16, 2022
b3daaa7
`choices`
imbillow Aug 18, 2022
2b0ecae
Compatible with previous commands?
imbillow Aug 18, 2022
2c306fe
remove `ag[jJkv?]` aliases
imbillow Aug 18, 2022
dee9041
fix `agw`
imbillow Aug 18, 2022
dbff561
Update librz/core/cmd/cmd_analysis.c
imbillow Aug 18, 2022
61aac7b
`short_opt`
imbillow Aug 18, 2022
17539a6
add test `aga multiple formats`
imbillow Aug 18, 2022
bb5b220
add test `agA multiple formats`
imbillow Aug 18, 2022
2701e09
fix
imbillow Aug 18, 2022
1d262eb
add test `ag[cd] multiple formats` and fix
imbillow Aug 18, 2022
ef5cb91
add test `agf multiple formats`
imbillow Aug 18, 2022
4c14081
add test `agr multiple formats`
imbillow Aug 18, 2022
7f57e60
add test `agx multiple formats`
imbillow Aug 18, 2022
d6e9a3d
fix
imbillow Aug 18, 2022
2e97a93
fix `agd` color
imbillow Aug 19, 2022
f18a408
fix
imbillow Aug 19, 2022
7952a9b
`strcmp`
imbillow Aug 19, 2022
3f8d45e
Apply suggestions from code review
imbillow Aug 19, 2022
0274567
Merge remote-tracking branch 'refs/remotes/origin/asan-fuzz-ag-rzshel…
imbillow Aug 19, 2022
363515e
apply suggestion
imbillow Aug 19, 2022
9760b61
Revert "fix"
imbillow Aug 19, 2022
099e144
fix
imbillow Aug 19, 2022
4f16503
fix
imbillow Aug 19, 2022
45487b6
remove test `ag[df] (dot|gml)`
imbillow Aug 19, 2022
775068d
choices
imbillow Aug 19, 2022
65e4288
Merge branch 'dev' into asan-fuzz-ag-rzshell
imbillow Aug 19, 2022
60b0c71
Revert "remove test `ag[df] (dot|gml)`"
imbillow Aug 19, 2022
46f7e35
`BROKEN=1` for `ag[df]`
imbillow Aug 19, 2022
ce83ae3
Merge branch 'dev' into asan-fuzz-ag-rzshell
imbillow Aug 20, 2022
fde375c
fix `rz_analysis_diff_fcn`
imbillow Aug 20, 2022
dfac67e
fix `rz_analysis_diff_fcn`
imbillow Aug 20, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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