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

rasm2 buffer overflow #41

Closed
7histle opened this issue Dec 21, 2012 · 1 comment
Closed

rasm2 buffer overflow #41

7histle opened this issue Dec 21, 2012 · 1 comment

Comments

@7histle
Copy link

7histle commented Dec 21, 2012

$ radare2 -v
radare2 0.9 @ linux-little-x86
$ cat /etc/_-release | grep -i _name
PRETTY_NAME="Ubuntu precise (12.04.1 LTS)"
$ python -c 'print "f"_40000' > /tmp/zzzz
$ rasm2 -a armthumb -b 32 -f /tmp/zzzz
WARNING: cannot set asm backend to 32 bits
*** buffer overflow detected ***: rasm2 terminated
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(__fortify_fail+0x45)[0x45f045]
/lib/i386-linux-gnu/libc.so.6(+0x102e1a)[0x45de1a]
/lib/i386-linux-gnu/libc.so.6(+0x10214d)[0x45d14d]
...

@radare radare closed this as completed in 2596d11 Dec 21, 2012
@radare
Copy link
Collaborator

radare commented Dec 21, 2012

Thanks for reporting. i have fixed this in git. Just some notes.

  • r2 0.9 is old. try to report bugs is they can be reproduced from the code in git.
  • armthumb plugin does not exists. use rasm2 -a arm -b 16
  • the arm and arm-thumb assemblers are pretty incomplete, feel free to contribute if you notice some missing opcodes.

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

2 participants