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

radiff2 -A = aa instead of aaa ##tools #22967

Merged
merged 1 commit into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 4 additions & 3 deletions libr/main/radiff2.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,10 @@ static RCore *opencore(RadiffOptions *ro, const char *f) {
if (ro->anal_all) {
const char *cmd = "aac";
switch (ro->anal_all) {
case 1: cmd = "aaa"; break;
case 2: cmd = "aaaa"; break;
case 3: cmd = "aaaaa"; break;
case 1: cmd = "aa"; break;
case 2: cmd = "aaa"; break;
case 3: cmd = "aaaa"; break;
case 4: cmd = "aaaaa"; break;
}
r_core_cmd0 (c, cmd);
}
Expand Down
10 changes: 9 additions & 1 deletion test/db/tools/radiff2
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@ NAME=radiff2 -AC (elf files)
FILE=-
CMDS=!!radiff2 -AC bins/other/radiff2/true bins/other/radiff2/false~?\(1.000000\)
EXPECT=<<EOF
50
EOF
RUN

NAME=radiff2 -AAC (elf files)
FILE=-
CMDS=!!radiff2 -AAC bins/other/radiff2/true bins/other/radiff2/false~?\(1.000000\)
EXPECT=<<EOF
54
EOF
RUN
Expand All @@ -84,7 +92,7 @@ NAME=radiff2 -AC (mach0 fat files)
FILE=-
CMDS=!!radiff2 -AC bins/other/radiff2/hellocxx-osx-fat-intel_1 bins/other/radiff2/hellocxx-osx-fat-intel_2~?\(1.000000\)
EXPECT=<<EOF
17
16
EOF
RUN

Expand Down
Loading