20072 Commits

Author SHA1 Message Date
radare
f6d374de54
Fix ANSI injection vulnerability in pd and pdj ##disasm 2018-11-26 01:47:25 +01:00
pancake
d7a7e9e57c Define __R2TINYC__ in our tcc fork 2018-11-26 01:36:17 +01:00
Alex Kornitzer
35363f3885 ta command now takes an optional offset argument ##types
* types: allow an offset to be set for the struct itself

Not all pointers to structs start at the beginning, thanks Microsoft
with your implementation of list entries. Therefore this commit allows
you to tweak the 'entry point' to the struct when using the ta command.
NOTE: Annoyingly this file is formatted badly so there are lots of
additions due to linting!

* ctype: handle nested structs in get_struct_memb

r_type_get_struct_memb will now parse inline structs rather than
incorrectly bailing out

* types: apply changes from review #12322
2018-11-26 00:04:30 +01:00
David CARLIER
8c7a56d98a Fix few leaks from reformatting sections/symbols names. (#12321) 2018-11-25 20:46:13 +01:00
radare
d34af95fae
Fix agc (only show call refs, not data) (#12315) 2018-11-25 14:40:20 +01:00
Khairul Azhar Kasmiran
6e7f980ee8 afi refs: remove trailing space (#12318) 2018-11-25 14:39:00 +01:00
dav1901
c7e6735105 Prevent double freeing (#12319) 2018-11-25 14:37:37 +01:00
Khairul Azhar Kasmiran
f1fee53ae0
Add missing space in afi locals (#12317) 2018-11-25 13:05:37 +08:00
David CARLIER
e339ef558b Fix #12307 - Escape ansi chars in cbin ##visual 2018-11-25 02:43:06 +01:00
pancake
ef997d8697 Vx supports mouse wheel now 2018-11-25 02:20:36 +01:00
pancake
8eb77d85ff Cleanup the visual xref code 2018-11-25 02:13:28 +01:00
pancake
272d01784e Add fcnInsteadOfAddr arg for proper xX in visualRefs from V, Vb and VV 2018-11-25 01:55:46 +01:00
BlaCoiso
0b582468ef Update output.c (#12314) 2018-11-25 01:47:11 +01:00
dav1901
a6b44e03fe Fix warnings (#12309) 2018-11-25 01:46:57 +01:00
pancake
bc322ac9cf Fix #12313 - Vbv is not VbF 2018-11-25 01:23:33 +01:00
BlaCoiso
2af904856f Fix mount shell and ed commands (#12312) 2018-11-24 22:52:08 +01:00
ahroach
2a071737c2 Fix typos in avr.sdb 2018-11-24 04:13:11 +01:00
pancake
6043d798be Fix codesigning for ios-cydia.sh with ldid2 2018-11-24 03:30:08 +01:00
pancake
becc6a5fab Trim refname if it exceed the screen width 2018-11-24 02:52:41 +01:00
David CARLIER
c504572cfa Further cleanup-code/less "optimistic" assumptions. (#12298) 2018-11-23 23:18:40 +01:00
Riccardo Schirone
356ff9a7ff Fix cursor when following refs/xrefs with \n in visual mode (#12304)
Commit cc9d361dd317d3679d6af7ff0809744c8d82c945 only partially solved
the issue. The same should have been done for \n, \r, ' '. This patch
refactors the code to be sure both cases do the same thing.
2018-11-23 21:00:18 +01:00
Khairul Azhar Kasmiran
0d74e2f51a Fix #12300 - Remove spurious xrefs to fcn addr (#12302) 2018-11-23 20:50:34 +01:00
dav1901
ef42e5a205 Fix few more covs (#12303) 2018-11-23 20:50:23 +01:00
bart1e
191ef84f03 Small code cleanups in fcn.c (#12299) 2018-11-24 00:40:07 +08:00
dav1901
c82049aaad Fix two minor warnings (#12296) 2018-11-23 13:54:28 +01:00
pancake
1c83de1e54 pF shows help instead of NYI 2018-11-23 13:53:18 +01:00
David CARLIER
2308897b3a Further meson warning build fixes. (#12290)
While here attempt fixing #12278 old version of file/libmagic.
2018-11-23 16:21:11 +08:00
pancake
c1fa170503 Improve the Visual xrefs with from/to disasm and handle JK ##visual 2018-11-23 03:07:34 +01:00
pancake
25603aa61c Fix #12292 - assert in r2 -coo -d ls 2018-11-23 02:06:28 +01:00
radare
efeca81167
Fix overflow in aac and assert in r2 -AAA /bin/ls on Mojave (#12291) 2018-11-23 01:55:48 +01:00
Luca Di Bartolomeo
59d0685b70 Fix #11427 - Crop output in vertical split in visual mode to avoid overflow 2018-11-23 01:15:05 +01:00
Luca Di Bartolomeo
a12549c43f Fix asm.flags.inbytes not showing in graph ##graph
* Added graph.bytes config option to show opcode bytes in graph
* Show bytes in graph if asm.flags.inbytes is set
2018-11-23 01:13:15 +01:00
pancake
24ae15c8bb Fix assert in ntoskrnl 2018-11-23 00:45:29 +01:00
pancake
c9a4142abb Fix maijins assert 2018-11-23 00:41:33 +01:00
pancake
11fcc3badc Fix macOS debugger slowdown regression introduced in 3b81610 2018-11-22 23:49:10 +01:00
Riccardo Schirone
cc9d361dd3 Reset cursor when using refs/xrefs in visual, otherwise it gets summed (#12277) 2018-11-22 22:21:06 +01:00
radare
d05292e485
Fix 80 warnings coming from gcc8.2 (#12280) 2018-11-22 22:11:43 +01:00
Álvaro Felipe Melchor
23d01f869c Improvements arm/thumb analysis ##anal
* anal: arm: emulate correctly BX PC in arm32/thumb ##anal
* anal: arm: handle BX PC in analysis to propagate bits

PC is well known without ESIL, that way it is possible to propagate the
bits to correctly create the hints

* anal: arm: modify r_anal_build_range_on_hints ##anal

This function now accepts a second parameter that specify when to
dispose hints when overlapping.

The rationale is that if this is performed in a continuos basis, old
ranges are lost when in a latter stage in the analysis is inserted a new
hint.

For example, if we have something like

0x80000 -> 16 bits
0x82000 -> 16 bits

With the previous logic this would have been become

0x8000 -> 16 bits

However, during analysis a new hint like this might happen

0x8100 -> 32 bits

Therefore, 0x8200 which was 16 bits is lost.  With the second parameter
update, we postpone this until the user print the disassembly - we wait
until the end to clean up hints to speed up the looks up. However,
during analysis we mantain all the hints.

* anal: arm: handle better anal hints to increase performance ##anal

new API r_anal_hint_get_bits_at

This saves time for example on r_anal_build_range_on_hints without the
need to use heap for RAnalHints speeding up the analysis

Added cb when calling r_anal_hint_set_bits and rbtree for anal ranges
which improves lookups

fix __anal_range_tree_find_bits_at

fix conflicts and coding style

* arm: set anal hint when BL instruction
2018-11-22 21:31:54 +01:00
radare
9279231918
Fix #12202 - Add asm.maxflags to specify how many flags per offset we want to see ##disasm (#12283) 2018-11-22 21:21:39 +01:00
radare
d0e6a692cb
Move the fcn refs visual feature into the view instead of adding more keys ##visual 2018-11-22 21:20:47 +01:00
pancake
e2542082f1 Refix visual graph 2018-11-22 17:36:55 +01:00
radare
40c2fecfeb
Use r_return in RAnalOp, reduce some code paths in xrefs search ##anal (#12263) 2018-11-22 16:24:04 +01:00
pancake
e821230045 Fix last covs 2018-11-22 16:19:25 +01:00
Khairul Azhar Kasmiran
b703010171 Visual 'j' honors asm.bb.middle (#12274) 2018-11-22 15:48:11 +01:00
pancake
6b9a8ee0ce Fix warnings 2018-11-22 15:41:33 +01:00
pancake
173333b3e5 Fix #12230 - Honor cursor in Vp xX ##visual 2018-11-22 15:17:47 +01:00
pancake
a4618a7010 Implement , and ; in pf to rewind and be able to support unions ##print 2018-11-22 15:17:47 +01:00
dav1901
a18fe42d96 Minor cleanups/fixes (#12256) 2018-11-22 15:14:59 +01:00
Riccardo Schirone
300844fa51 Introduce RBinArchOptions to avoid creating fake RBinFile/Objects ##bin 2018-11-22 15:14:37 +01:00
pancake
90f28ef3bd Make travis green 2018-11-22 15:08:39 +01:00