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

command "adf" Segmentation fault #16215

Closed
aar0nge opened this issue Mar 14, 2020 · 1 comment · Fixed by #16230
Closed

command "adf" Segmentation fault #16215

aar0nge opened this issue Mar 14, 2020 · 1 comment · Fixed by #16230

Comments

@aar0nge
Copy link
Contributor

aar0nge commented Mar 14, 2020

Work environment

Questions Answers
OS/arch/bits (mandatory) Ubuntu x86 64
File format of the file you reverse (mandatory) ELF
Architecture/bits of the file (mandatory) x86/64
r2 -v full output, not truncated (mandatory) radare2 4.3.1 23928 @ linux-x86-64 git.4.3.1-10-g1271d65 commit: 1271d65 build: 2020-03-11__10:01:54

Expected behavior

Handle input error

Actual behavior

Segmentation fault

Steps to reproduce the behavior

$ r2 -
[0x00000000]> adf
Segmentation fault (core dumped)

Additional Logs, screenshots, source-code, configuration dump, ...

image

in libr/core/anal.c, when command "adf" has no or wrong argument,
anal_fcn_data (core, input + 1) --> RAnalFunction *fcn = r_anal_get_fcn_in (core->anal, core->offset, -1);
returns null pointer for fnc cause segmentation fault later in ensure_fcn_range (fcn);

@radare
Copy link
Collaborator

radare commented Mar 14, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants