Commit Graph

747 Commits

Author SHA1 Message Date
pancake
eba88d8758 Honor midflags in pid and pdi 2017-04-16 11:12:41 +02:00
pancake
413f68ca79 Honor midflags in pij 2017-04-16 11:03:11 +02:00
pancake
e7b852adec Honor midflags in pi 2017-04-16 11:03:02 +02:00
Francesco Tamagni
a6ce0993ad Bring back NULL checks for ds->opstr (#7273)
- fix a NULL dereference on `strstr` happening on `agf` under certain conditions
2017-04-14 14:10:24 +02:00
pancake
05cb1612d2 Fix #7268 - wrong disasm with asm.pseudo=1 and asm.cmtright=0 2017-04-13 23:10:43 +02:00
pancake
870bb924da Fix memleak 2017-04-09 18:57:33 +02:00
Khairul Kasmiran
1ef940c92d Proper colors when asm.filter=false 2017-04-09 18:54:22 +02:00
Khairul Azhar Kasmiran
a064acd9e6 Not showing instr cmts for data (asm.cmtright=true) (#7221)
* Not showing instr cmts for data (asm.cmtright=true)

* Fix for current tests
2017-04-09 00:53:55 +02:00
pancake
61040238c8 Fix #6338 - Add asm.varsum to show variables summary instead of full var list 2017-04-07 21:09:33 +02:00
Khairul Azhar Kasmiran
a3ac3c5dec No LEA cmt if flag already in disasm (#7212) 2017-04-06 22:16:01 +02:00
Khairul Azhar Kasmiran
d9d839147e Revert to old coloring for asm.filter'd flags (#7192)
* Revert to old coloring for asm.filter'd flags

* Fixed r_parse_filter output for pc relative addrs when color is involved

* Small fix to prevent oob memory access

* Proper handling if esc char not found
2017-04-04 15:00:21 +02:00
pancake
6d870cc05a Fix null deref in disasm colors 2017-04-03 15:41:08 +02:00
Khairul Azhar Kasmiran
7d15907bfc Always build ds->opstr before comment (#7196) 2017-04-03 12:01:07 +02:00
pancake
fd4efcfa70 Add asm.section.sub to the pointer dereference strings in disasm 2017-03-30 02:20:22 +02:00
pancake
8edcc53a18 Implement asm.section.sub to prefix offsets with section name in disasm 2017-03-28 22:55:58 +02:00
Khairul Azhar Kasmiran
c79bab3df4 Don't repeat flag in comment if already in disasm (PUSH) (#7140)
* Don't repeat flag in comment if already in disasm (PUSH)

* Maintain current behavior if ds->opstr is NULL
2017-03-27 13:24:50 +02:00
Srimanta Barua
2ce093b23d Added display of strings in disassembly for PIC binaries (#7112)
* Added refs to disassembly

* Added comments for lea references

* Bug fixes

* arm and mips tests

* Fixed merge conflicts
2017-03-27 04:48:55 +02:00
pancake
f940c9207e Add esil.stack.{addr,size,depth} config variables instead of hardcoded constants 2017-03-27 03:39:13 +02:00
Khairul Azhar Kasmiran
33da7ad530 Don't repeat flag in comment if already in disasm (#7125)
* Don't repeat flag in comment if already in disasm

* Added missing space

* Added check for valid ds->opstr
2017-03-25 16:05:39 +01:00
pancake
7db1a11d33 More reindent and use R_EMPTY instead of {0} 2017-03-25 02:30:00 +01:00
Álvaro Felipe Melchor
ef7682676b Fix #6697 - aav now is aware of thumb addr 2017-03-24 01:07:42 +01:00
radare
bda3afbf3b Fix asm.pseudo when asm.cmtright=0 2017-03-20 23:43:34 +01:00
Riccardo Schirone
084d5c1217 libr/parse: add another view for function variable/arguments (#7048) 2017-03-17 11:54:34 +01:00
davidpolverari
1fb422b532 Fix #6162 - Renames r_str_concat to r_str_append 2017-03-16 22:29:49 +01:00
pancake
6adccc91ed Fix build 2017-03-13 03:38:59 +01:00
Jeremy Goldstein
4948582846 Adds the ability to print filtered strings in the disassembly that are not flags and contain newlines (#6979) 2017-03-12 19:39:55 +01:00
pancake
8f34c0b2a5 Fix #6456 - Show cursor in data words 2017-03-10 18:09:23 +01:00
pancake
36ade4b7e7 Fix #6937 - Fix crash in mips graph (colateral issue of vararg missuse) 2017-03-09 16:54:31 +01:00
oddcoder
43b1530ffc fixing confusion between stack and maxstack (#6959) 2017-03-09 14:23:41 +02:00
pancake
9d637f7439 Fixes for dalvik and analop(imm/ptr) 2017-02-24 13:11:08 +01:00
pancake
a6e44bc5fa Fix const sign issue in dex 2017-02-24 02:33:11 +01:00
Maijin
657e156857 Enhance graph shortcuts 2017-02-23 13:36:55 +01:00
pancake
2a80733253 Fix #6764 - overflow in pi -X after aa 2017-02-11 13:05:25 +01:00
pancake
56119f04b2 Fix infinite loop in pif and fix pif test 2017-02-10 12:03:28 +01:00
pancake
e7c1f7a3f1 Disable asm.tabs when asm.pseudo 2017-02-06 00:56:51 +01:00
pancake
54b8fe1bb3 Fix pdfj fixes 2017-02-05 01:24:50 +01:00
Sven Steinbauer
e8e9287c12 New asm.relsub enhancement 2017-02-03 09:53:57 +01:00
pancake
5b1b6c682c Fix disassembly issue introduced in ebb75f3d38 2017-01-31 23:33:27 +01:00
mrmacete
d50ba765eb Fix #4554 stackptr calculation on pdr and graph
- blocks have their stackptr
- inherit from parent when visited hierarchically (in pdr and graph)
- add the global anal->stackptr as a starting value for disasm, defaults to 0
2017-01-31 13:06:26 +01:00
Álvaro Felipe Melchor
ebb75f3d38 Fix #6506 - shown twice flags due to midflags 2017-01-29 20:39:32 +01:00
pancake
d9fb5713db Fix racy set of asm.cpu and asm.arch 2017-01-24 13:57:17 +01:00
pancake
b65403abb4 More glitchfixing for disasm 2017-01-24 11:36:02 +01:00
pancake
4c6b418351 Fix back the comment alignment glitch regression 2017-01-24 02:59:02 +01:00
pancake
91ba43a161 Enhance multiline comments disasm 2017-01-24 02:19:12 +01:00
pancake
c17889a9b4 Fix fd and use it in axt and visual xrefs 2017-01-24 01:41:12 +01:00
pancake
bb9ac3c49b Fix another disasm glitch 2017-01-24 01:27:51 +01:00
pancake
dc203aeb27 Fix build 2017-01-24 00:50:22 +01:00
pancake
d619c6039f Fix undefined behaviour in pd with emustr 2017-01-23 22:42:27 +01:00
pancake
f7f76e841d Fix asm.emu syscall output test 2017-01-22 09:44:35 +01:00
Álvaro Felipe Melchor
2ec6722bfe Handle f->bits as anal hints and blx/bx in aa/aae
This commit erases the need of ds->oldbits plus a few lines when handling
bits in disasm.

Moreover, the functionality that was introduced in disasm.c to switch
instruction set in arm when executing blx/bx, is now in anal loop
2017-01-19 21:53:02 +01:00