198 Commits

Author SHA1 Message Date
Álvaro Felipe Melchor
dc5673ec3a Fix regression with the arm/thumb changes (#5464)
Now we build a list of ranges (RAnalRange) based on anal hints to handle the
bits in a better way in the case of arm/thumb

Now instead of asm.bits that rules the whole binary we can define ranges with
anal hints
2016-08-10 18:49:44 +02:00
Álvaro Felipe Melchor
0bc983027f improve arm/thumb in elf file format and disasm 2016-08-07 17:38:34 +02:00
pancake
2dda628da1 Null terminate array of instructions in x86.nz to fix a crash 2016-07-26 18:46:48 +02:00
Jeffrey Crowell
3e8a0cc693 replace usage of killed r_str_trim 2016-06-10 01:12:07 +00:00
pancake
d3394d5a7a Fix latest 28 COVs 2016-06-02 03:19:31 +02:00
pancake
03294af32b Fix null deref in libr_asm and add lang-python r2pm pkg 2016-06-02 02:45:38 +02:00
pancake
c64eeaa266 Initial implementation of asm.assembler to select different assembler plugin than the disasm 2016-05-30 18:53:32 +02:00
Damien Zammit
5e1ad580db build: fix warnings 2016-05-08 12:21:11 +02:00
Damien Zammit
af0a865d9f WIP - Totally remove host endianness dependence
- Adds endian aware functions
- Removes references to host endian
- Uses binary detected endianness else tries LE and restricts by RAsmPlugin
- Fixes gdb debugger endianness when debugging BE qemu gdbserver

Signed-off-by: Damien Zammit <damien@zamaudio.com>
2016-05-04 23:42:17 +10:00
Álvaro Felipe Melchor
149c7567ed improve arm/thumb detection for .so 2016-05-02 23:00:53 +02:00
pancake
1f7db90e41 Priorize keystone plugins and other random changes 2016-05-02 02:46:01 +02:00
pancake
b417da6d4d Add setarch/(from|to).string simplified RAsm APIs 2016-04-29 11:30:38 +02:00
Riccardo Schirone
26fc8f92ef libr: remove some unused variables and functions 2016-04-27 12:59:45 +02:00
NaveenBoggarapu
4c04b98b47 few memory leaks fixed 2016-04-13 21:55:48 +02:00
pancake
e8263655be Fix more memleaks 2016-04-04 00:17:57 +02:00
pancake
ce7ca97cb6 Wip fixes for r_strbuf 2016-02-16 00:28:57 +01:00
pancake
fd359e9121 Implement radiff2 -D and optimize r_strbuf 2016-02-15 23:51:20 +01:00
deffi420
e7fdedd501 Improve r_hex_str2bin, fix overflow and error check 2016-01-23 11:53:43 +01:00
mrmacete
92991394a5 + fixed labels replacement in assembler (#3395) 2015-11-19 11:47:25 +01:00
@bezjaje
8468b96ff8 avoid '#' comment assembly on negative numbers 2015-11-17 12:52:19 +01:00
pancake
9c5a309791 Fix oobread in print_hexpair and fill buf_hex in unaligned disasm 2015-11-16 22:37:02 +01:00
pancake
f4e6c8a7df Fix static builds 2015-11-01 00:20:58 +01:00
pancake
42bc18703a Implement asm.pcalign and min/max opsize info 2015-10-14 02:11:53 +02:00
pancake
8f8bb3f253 Fix uninitialized variable in RAsm.new 2015-10-04 17:57:32 +02:00
pancake
83063970fe Fix rasm assembler parsing for instructions with : 2015-09-18 21:54:25 +02:00
pancake
f807abff7c Honor asm.invhex in avr and ppc.cs 2015-09-16 22:20:14 +02:00
Anton Kochkov
7a5ed6523c Kill the remnants of the debug for asm.invhex 2015-09-15 18:37:29 +03:00
Felix Held
ae24a9a4c8 fix endianess of printing hex value of illegal instructions 2015-09-15 18:27:55 +03:00
pancake
49975ccf95 Fix #3286 - Use stdbool.h 2015-09-14 02:08:31 +02:00
Anton Kochkov
a40719649b Do not filter ":" for AVR assembler 2015-09-02 23:33:45 +03:00
pancake
6b254a98c7 Fix #1118 - Add asm.invhex and asm.lines.ret
- Do some cleanup in RAsm and RCore.disasm
- Accidentally reverts 74be82d30b979b002208fb6db7fa5a771944ff26.
2015-08-31 00:24:28 +02:00
pancake
1e3dbdf18c Enhace asm.assembler priorities 2015-08-24 17:28:13 +02:00
pancake
e774d332b7 Fix #3082 - Add support for MASM syntax in x86.cs 2015-08-21 15:29:37 +02:00
Álvaro Felipe Melchor
1c7feb2240 Fix some infers 2015-06-20 17:33:09 +02:00
pancake
bb76bb1794 Add asm.syntax=jz to convert je/jne into jz/jnz 2015-05-09 11:11:46 +02:00
pancake
2aecde26d2 Tons of free candy. See details below:
- Fix arm-thumb ESIL for the SUB instruction
- Handle Java imports as symbols in code analysis
- Invoke Java instructions reference the imports now
- Fix 71 crashes reported by jn
- Affected bin modules: elf, mach0, java, te, pe, dex
2015-04-13 00:57:32 +02:00
pancake
dbe0972610 Fix pd -x and pD -x : It can be heavily reworked. 2015-04-03 02:24:23 +02:00
pancake
6e52324885 Fix some more null derefs related to the rbininfo change 2015-03-25 17:29:38 +01:00
pancake
56adb2533c Fix some pdj issues and recover a bit of /p scroll 2015-03-06 01:14:09 +01:00
pancake
a5f53eae05 Initial implementation of asm.features on x86.cs and arm.cs 2015-02-11 03:50:56 +01:00
Jeffrey Crowell
559049908e fix crash in asm.c
asm.c could assemble more instructions than spots in the token array,
this fixes it.
2014-12-05 13:32:03 +01:00
pancake
4bb8a10390 Fix segfault in RAsm.fini and disable iter api for arm.cs 2014-11-14 00:40:24 +01:00
pancake
17bb6ab675 Fix memleak in x86.cs using the iter api
- Remove unused custom alloc code
- Call plugin destructor in RAsm fini method
2014-11-13 17:21:06 +01:00
pancake
6d4529ffbf Add core.anal plugin a2f command. Fix a bug in x86.cs, align comments at right 2014-11-13 03:36:48 +01:00
pancake
4790375679 Random enhacements for RHex apis and relocs 2014-11-04 02:16:40 +01:00
pancake
a9eb8da77b Fix overflow in r_asm_disassemble() and implement rip-relative refs in anal.x86.cs 2014-11-03 03:27:22 +01:00
pancake
8204e78c3f Fix RBin & RLang related crashes (fix lot of memleaks and dblfrees) 2014-08-29 16:27:44 +02:00
pancake
d328957768 Update sdb to fix '***' and add r_asm_get_plugins 2014-07-03 00:03:01 +02:00
pancake
2490e54e77 Add asm.syntax=regnum (alias for capstone NOREGNAME) 2014-06-25 15:44:33 +02:00
Anton Kochkov
2b2333f981 Fix CID 1195083 2014-05-15 04:55:20 +04:00