17760 Commits

Author SHA1 Message Date
Riccardo Schirone
9e88e1b703 anal: fix long vs int size issue on 32bit machines (#9809)
* anal: fix long vs int size issue on 32bit machines

The %lld format expects a long long, but an int was provided on the
stack, so the snprintf was accessing a wrong memory to print %s. Convert
the first argument to long long to solve the issue.

* bin: use st64 instead of long long
2018-04-05 10:59:01 +02:00
pancake
e94e54d695 Fix last covs and leak in izz 2018-04-05 10:49:36 +02:00
Khairul Azhar Kasmiran
497a015ec2 asm.emu.strinvert: control color inversion of asm.emu strings (#9801)
* asm.emu.strinvert: control color inversion of asm.emu strings
* Shortened asm.emu.strinvert to asm.emu.strinv and its desc
2018-04-05 09:54:44 +02:00
pancake
80759f227d Implement pdsb, /gg to graphpath following calls, and honor anal.depth and search.count 2018-04-05 09:30:47 +02:00
pancake
613b240449 Fix aab. (a8 -> ab). Implement /gg and /g? 2018-04-05 01:45:12 +02:00
pancake
5556e7d841 Fix #9588 - Pl -> P 2018-04-05 00:43:35 +02:00
pancake
a866ae451c Implement px[WQ]q and honor asm.offset 2018-04-04 22:42:50 +02:00
pancake
3b7f2b8126 Fix #9805 - Implement file autocompletion after > 2018-04-04 22:32:51 +02:00
pancake
3b8e645770 Fix #9707 - Remove aos from help message 2018-04-04 22:19:35 +02:00
pancake
44a6f48206 Fix #9718 - Support upparse asm.relsub for arm-thumb 2018-04-04 22:17:20 +02:00
Paul I
6172ec25b1 Meson: fix missing libsdb files (#9803) 2018-04-04 21:58:42 +02:00
pancake
9c1f5e0409 Fix mips64 debugger regprofiles 2018-04-04 16:40:46 +02:00
pancake
0529ed0d3f Add breakpoints for mips64 2018-04-04 16:40:28 +02:00
Riccardo Schirone
db67ea5f0c RBin: fix void* != ut64 in elf parser (#9792) 2018-04-04 15:56:19 +02:00
pancake
12d3c8d81e Fix #9800 - null deref in elf parser 2018-04-04 15:55:50 +02:00
Gromimousse
c5e476fed1 Rop gadgets are now stored in sdb (#9784)
* Rop gadgets are now stored in sdb

 - Now gadgets are searched only once, and then future rop search are
 much faster because gadgets are just retrieved directly from sdb
 - Still need to deal with the grep functionnality, and perhaps recode a
 little bit around that to make it work well with the gadget in the sdb
2018-04-04 13:00:52 +02:00
Giovanni
b3f5853316 [v850] V850_ADD_IMM5 fix #8308 (#9797)
* GR [reg2] <= GR [reg1] + sign-extend (imm16)
* fixed missing cast to signed 32 for esil of immediate value
2018-04-04 12:58:13 +02:00
sivaramaaa
17061a7b61 Fix #8198, Avoid restoring and replaying session twice in every step back command (#9794) 2018-04-04 12:57:46 +02:00
Francesco Tamagni
7f5584ee00 Fix “fail” address for arm thumb2 IT instruction (#9795)
- stateless
- get the address of the n-th next instruction using capstone
- in this way the n-sized group of following instructions will be in the same block (regardless of the single instruction condition being T or E)
2018-04-04 12:56:56 +02:00
Riccardo Schirone
f1e9277b1e core: do not print two times the last basic block on /g command (#9793) 2018-04-04 12:45:25 +02:00
pancake
51958b62c3 Implement /g to find all possible paths from A to B inside a function 2018-04-04 00:42:24 +02:00
radare
dfcf6f745d
Initial transition to use RBuffer in RBin (#9787)
* Initial transition to use RBuffer.io in RBin

- Fixes loading Core files from Virtualbox (> 2GB ELF64)
2018-04-03 20:23:26 +02:00
Khairul Kasmiran
9f27259a03 Using Color_INVERT_RESET instead of Color_RESET for asm.emu.str strings 2018-04-03 17:38:57 +02:00
pancake
94af669a8f Implement r2k.wp and fix r2k.io 2018-04-03 14:44:23 +02:00
xarkes
c276ae6c54 Fixed smd/m68k issues (Fix #9790) 2018-04-03 13:19:13 +02:00
Nics
35aca48289 Exclude meson.build from the list of color schemes. (#9648) 2018-04-03 09:09:36 +02:00
pancake
5247515d2c Bring back the old help message in r2k 2018-04-03 02:11:27 +02:00
pancake
f33bf51bef Improve r2k-linux \? commands and revert io.undo patch 2018-04-03 02:02:48 +02:00
pancake
902ce16418 Honor scr.color un cu[1248] 2018-04-03 00:44:54 +02:00
pancake
aa13c0269d Implement cu[1248] command 2018-04-03 00:34:07 +02:00
pancake
5a5ab2693b Fix seek undo and make s.. push in the undo history 2018-04-02 22:41:12 +02:00
Paul I
8675e324ac Meson: add libr_shlr.a building/installation rule (#9789)
* Meson: add libr_shlr.a building/installation rule

* Meson: distribute *.lib/*.a files for Windows by default
2018-04-02 22:33:05 +02:00
pancake
089a201ebc Hex numbers start in 0x (in r2k too) 2018-04-02 20:00:39 +02:00
Khairul Kasmiran
fd598d443c asm.emu.str: include \t, \r and \n as string chars 2018-04-02 04:17:52 +02:00
pancake
b6f043fe39 Fix #9778 - Implement afxj command 2018-04-02 04:16:42 +02:00
Abominas
6c1961de67 Fix help message 2018-04-02 03:46:17 +02:00
Abominas
56e8ef5c47 Fix zoom in visual graph 2018-04-02 03:46:17 +02:00
pancake
6fba433277 Implement r_buf_new_with_io 2018-04-02 03:34:49 +02:00
pancake
d06a15004a Fix asan issue in px 2018-04-02 03:32:53 +02:00
pancake
1e7dbbdd2e rabin2 -I binsz must be ut64, not int 2018-03-31 23:39:03 +02:00
Paul I
4f7687287f Meson: Some little fixes (#9783)
* fix shlr libraries names
* fix missing headers for Windows dist
* fix missing format files for Windows dist
* add <static_runtime> option
* add argument with list of additional meson options for sys/meson.py
2018-03-30 23:35:12 +02:00
Iulian Onofrei
c4acac59be Fix duplicate y/N on suicide (#9780) 2018-03-29 19:47:23 +02:00
plsph
f3b221bca6 Fix drx output hw breakpoint length (#9779) 2018-03-29 13:22:34 +02:00
FXTi
c3f1a5d853 Fix tt command, now support synthetic built-in type (#9777) 2018-03-29 13:22:20 +02:00
Vanellope
2f8efe848f Use camelcase in typedefs (#9775) 2018-03-28 12:31:08 +02:00
Vanellope
8cdd8d229f refactored and fixed couple of bugs (#9774) 2018-03-28 10:00:54 +02:00
Andrew D'Addesio
2243da3095 Fix comma logic in dmj (#9773)
Can't rely on iter->n since we are iterating over multiple lists.
2018-03-28 12:22:59 +08:00
Andrew D'Addesio
405c67d770 dm/dmm code cleanup and fix dmj json output (#9769)
* Always escape filename/path when printing json. (Fixes dmj output
  on Windows.)
* Always wrap path in quotes when printing r2 commands (even on
  non-Windows).
* Assume memory pages belonging to modules always have map->path and
  map->name set (i.e. remove redundant NULL comparisons).
* Assume memory pages _in general_ do not (per commit a1e24700e3c90182).
* In dm command, compare flag name against r_name_filter(map->name).
* Fix dm output for user maps.
2018-03-27 16:32:39 +02:00
Xilokar
985fc13545 Fix fixed{arch,bits} if recursively called (#9771) 2018-03-27 16:32:13 +02:00
Khairul Kasmiran
12dec13482 Removed some spaces 2018-03-27 20:32:47 +08:00