13122 Commits

Author SHA1 Message Date
pancake
8b57223838 Fix #3598 - Honor maps in search.in=file 2016-12-09 17:27:28 +01:00
pancake
a7cc5e494e Handle SYSENTER and SYSEXIT in anal.x86.cs 2016-12-09 17:09:57 +01:00
pancake
9ebb180ed3 Fix the remaining test to make travis happy 2016-12-09 17:05:30 +01:00
Rene Laemmert
ad852718f5 changed the iteration over the opcodes inside bbs for afva, added afva to a2f and added xrefs to the a2f command too (#6284)
* changed the iteration over the opcodes inside bbs for afva, added afva to a2f and added xrefs to the a2f command too

* indentation
2016-12-09 15:52:53 +01:00
BlueC0re
30cae123ed fix pdb json output (branch was never taken due to wrong mode) (#6295)
* fix pdb json output (branch was never taken due to wrong mode)

* don't output comma in case of error
2016-12-09 15:49:50 +01:00
pancake
4484781169 Fix last cov (uninit var) 2016-12-09 15:39:48 +01:00
pancake
529613dbbe Fix #6293 - V after agf not working 2016-12-09 15:29:15 +01:00
pancake
441220dd04 hwstep is possible on all linux-x86-64.. dunno why this canstep 2016-12-09 15:12:18 +01:00
Simon IJskes
1b996d765b fix djnz jump target miscalculation (#6290) 2016-12-08 16:42:30 +01:00
ali
11f0596112 fixed typo in rax2 man file (#6292) 2016-12-08 16:42:17 +01:00
Gerardo García Peña
f40cbcee33 Set ATmega8 MCU by default. (#6291) 2016-12-08 01:22:54 +01:00
Álvaro Felipe Melchor
7edd787373 remove check in bin_mach0 already handled by fcn 2016-12-07 13:37:53 +01:00
Álvaro Felipe Melchor
940c9a9bf1 handle more data sections in objc mach files 2016-12-07 13:09:08 +01:00
pancake
5b7acbc42e Honor cfg.bigendian in wv 2016-12-06 15:25:49 +01:00
Álvaro Felipe Melchor
dca3bf8602 handle better data references 2016-12-05 20:07:32 +01:00
leberus
7f5a709a8f Add: pir command (#6276) 2016-12-05 19:41:37 +01:00
Álvaro Felipe Melchor
db0f4da4ff remove some fp entry points coming from TLS 2016-12-04 23:55:14 +01:00
Álvaro Felipe Melchor
028e8f0ca3 Fix few covs 2016-12-04 22:26:17 +01:00
Álvaro Felipe Melchor
15022e85e1 clean anal hints when using xtr plugin 2016-12-04 20:41:56 +01:00
leberus
e82a638006 Fix: #6278 (#6280) 2016-12-03 19:00:29 +01:00
pancake
8c96a90d09 Fix first visual seek to PC in debugger mode 2016-12-03 12:27:32 +01:00
pancake
025119779f Fix boundaries in p-j after aaa 2016-12-02 21:08:20 +01:00
pancake
3d03750056 Add rwx field in the p-j output 2016-12-02 20:44:32 +01:00
user.name
2e5e67ee08 Fix: regression in commit f0f54ad1c614f7f1a449844a123fb8f9299ee497 2016-12-02 18:20:19 +01:00
Álvaro Felipe Melchor
19724d5d89 Fix thumb/arm at entry when overlapp with symbol
entry points takes precedence
2016-12-02 17:49:46 +01:00
Álvaro Felipe Melchor
fc6000a8be Fix regression in fatmach0
$ r2 -a arm -b 64 mfan
Not enough data for SClassRoT
Not enough data for SClassRoT

mach0_classes.c handle the buffer of the mach instead of the whole
fatmach file. Thus we should revert physical addresses by obj->boffset on
sections.
2016-12-02 17:46:48 +01:00
Álvaro Felipe Melchor
35eb178c8b do not realign haddr in thumb mach0 2016-12-02 16:22:18 +01:00
Álvaro Felipe Melchor
4f8dcb3218 realign entry and set anal hints in arm mach0 2016-12-02 13:48:56 +01:00
Álvaro Felipe Melchor
884d2ddcc1 fix oob read in dwarf 2016-12-02 13:21:50 +01:00
Sven Steinbauer
e4b5f0f32b Cleanup opjc for x86_nz 2016-12-01 10:07:53 +00:00
pancake
13c15cb0a2 Fix #6268 - Deanonymize the AVR union 2016-12-01 10:54:35 +01:00
pancake
72e874c2ac Fix noreturn issue introduced with the flag_get_at aproximation 2016-12-01 10:48:00 +01:00
dequis
d505ecfacf anal: fix 'axf string ref' tests within axf.
Complements commmit 637e6db by reverting to the old axf behavior of
showing xrefs from a single address instead of the whole function,
but only if that specific address has xrefs. Otherwise it shows the
xrefs of the whole function

References #5113
2016-12-01 09:24:04 +01:00
pancake
5bb4568b55 Fix code injection vulns in new dmS 2016-12-01 09:20:02 +01:00
Ben Gardiner
97b3b86bba debug: new dmS command for listing sections of mapped libraries
This command is like dmi. It will list all the sections of the mapped
library by either shelling-out to rabin2 or calling r_core_info --
depending on whether filtering by library name was requested.

---
v3:
* more formatting (pancake)
* r_str_escape and quote the value passed in RABIN2_PREFIX env var (pancake)

v2:
 * formatting (pancake)
 * don't break out of the loop early
 * only strdup when I must [^1] (pancake)
 * I can't use r_sys_cmdf because then I can't filter the output with ~
    * reduce noise a little by calling r_sys_cmd_strf directly
 * iterate over the modules, not the maps

[^1]: The strdup of r_get_config(...,"bin.prefix") is needed because otherwise
we loose the original bin.prefix during the r_set_config(...,
"bin.prefix") calls in the loop.

review comments on dbg_maps
2016-12-01 09:15:22 +01:00
Ben Gardiner
4c890d0b52 config: fix double-free when setting bin.prefix more than once 2016-12-01 09:15:19 +01:00
Ben Gardiner
0269d63ff1 debug: fix db.maps.symbols.after.map.complete
This fixes a valgrind read past buffer error... I was seeing when
testing t.archos/Linux-x86_64/dbg_maps

```
Invalid read of size 8
==11424==    at 0x4C2F79E: memcpy@@GLIBC_2.14 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==11424==    by 0x693C702: r_reg_set_bytes (arena.c:118)
[...]
==11424==  Address 0xa144430 is 0 bytes after a block of size 304 alloc'd
==11424==    at 0x4C2CC70: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==11424==    by 0x5D49EE6: r_debug_reg_sync (dreg.c:60)
[...]
```

---

v2:
* don't forget spaces around '+' (pancake)
2016-12-01 09:15:16 +01:00
Ben Gardiner
b4158201c2 rabin2, sections: fix missing prefixes on -S (was working for -rS) 2016-12-01 09:15:13 +01:00
Gerardo García Peña
9adec9da86 SPM instruction (not tested). (#6274) 2016-12-01 09:10:34 +01:00
Elia Geretto
31e8d7cb68 Fix various memory leaks (#6272)
* Fix bits_ranges memory leak in anal.c
* Fix anal->reg memory leak and prevent use after free in plugin.c
* Fix reg->allregs memory leak in reg.c
* Fix dbg->plugins memory leak in debug.c
* Fix io->plugin_default memory leak in io.c
* Fix plugin_free not deallocating plugin in bin.c
* Adapt to style guidelines
* Fix memory leak in r_bin_object_free and resolve double free
* Fix o->kv memory leak in r_bin_object_set_items
* Fix memory leak pushing arena on reg init
* Fix io->plugin_default memory leak in io.c
* Adapt to style guidelines
* Fix pfile memory leak in radare2.c
* Add braces to if in bin.c
2016-12-01 09:09:59 +01:00
pancake
5463ce4934 Try to find strings in LEA references, not just flags 2016-11-30 18:00:23 +01:00
pancake
cb06c9c26b Fix #6270 - Honor current offset when assembling conditional jumps in x86 2016-11-30 16:22:34 +01:00
Maijin
57a6cc1daa Removing outdated line in doc
Removing outdated line in doc
2016-11-29 22:53:57 +01:00
Rakholiya Jenish
c7c1fad14f add all ioctl (#6265)
use PFMT64x

fix things
2016-11-29 14:00:58 +01:00
pancake
3fa97e94cb Fix latest covs 2016-11-29 11:52:24 +01:00
Gerardo García Peña
83d002cee5 Fixed flags in SUBI and SBCI. Implemented SUB. (#6266) 2016-11-29 11:22:10 +01:00
Gerardo García Peña
ed5ed8a1d2 New instruction swap (nibbles). (#6267) 2016-11-29 11:22:04 +01:00
Maijin
ffd8ecd14b Add remaining [?] 2016-11-26 14:57:21 +01:00
Sven Steinbauer
5851f6f117 Colour current node when using aga Fix #6260 (#6263)
Highlights the current block when using `aga` cmd too, using graph.current colour

Fix #6260
2016-11-25 17:23:24 +00:00
Anton Kochkov
b82b68cf7e Iprove Mingw32 build script 2016-11-25 18:52:57 +03:00