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

b64 crash #22932

Closed
riptl opened this issue May 13, 2024 · 0 comments
Closed

b64 crash #22932

riptl opened this issue May 13, 2024 · 0 comments

Comments

@riptl
Copy link
Contributor

riptl commented May 13, 2024

Environment

Mon May 13 15:10:39 CEST 2024
radare2 5.9.1 32219 @ darwin-arm-64
birth: git.5.9.0-206-g7f23865cac 2024-05-13__15:08:02
commit: 7f23865cac88bf10f68b24b41572f35e00c9efe9
options: gpl -O2 cs:5 cl:2 make
Darwin arm64

Description

radare2 % lldb -- r2 -c 'b64:' -     
(lldb) target create "r2"
Current executable set to '/Users/ripatel/.local/bin/r2' (arm64).
(lldb) settings set -- target.run-args  "-c" "b64:" "-"
(lldb) run
Process 22260 launched: '/Users/ripatel/.local/bin/r2' (arm64)
Process 22260 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
    frame #0: 0x0000000100d15478 libr_core.dylib`cmd_bsize(data=0x0000000128018000, input="64:") at cmd.c:2643:13
   2640                 if (r_str_startswith (input, "64:")) {
   2641                         int len = 0;
   2642                         char *cmd = (char *)sdb_decode (input + 3, &len);
-> 2643                         cmd[len] = 0;
   2644                         r_core_cmd_call (core, cmd);
   2645                         free (cmd);
   2646                 } else {
Target 0: (r2) stopped.

Also reproduces on s390x

Test

radare2 % r2 -c 'b64:' -
zsh: segmentation fault  r2 -c 'b64:' -
@trufae trufae closed this as completed in bda40f9 May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant