Commit Graph

3021 Commits

Author SHA1 Message Date
josediazfer
855757a3ad W32 debug issues (#8707)
* W32 debug issues:

Fill debug info (executable path and username)
Debug event STATUS_X86_SINGLE_STEP instead of EVENT_SINGLE_STEP when debug a x86 binary using radare 64 bits

* Fix cast types
2017-10-18 15:39:13 +02:00
pancake
0595a68d4d Fix #7120 - Add read/write/exec /r subcommands 2017-10-17 00:03:34 +02:00
pancake
986ab7a6fd Add RAnalOp.direction and tweak ao for it 2017-10-16 23:38:10 +02:00
pancake
e17df3ab70 Implement pj, pj. and pj.. commands 2017-10-16 13:31:13 +02:00
pancake
29a155d5d4 Add missing extern C for r_io.h 2017-10-16 12:38:58 +02:00
Khairul Azhar Kasmiran
373ecde4a5 Cs..: show string + info about it at current address (#8689) 2017-10-15 23:29:43 +02:00
Anton Bolshakov
2334829ce6 r_big.h: fix building issue (#8691)
See the following for more details:
https://github.com/radare/radare2-bindings/issues/176
2017-10-15 13:05:36 +02:00
pancake
24307b6753 Add io->ret to hold return value 2017-10-12 01:57:19 +02:00
pancake
637543c541 Enhance ax, axk lists and axq is the old ax 2017-10-09 00:51:51 +02:00
Thomas Bailleux
2138aa2209 Fix the use after free which causes a segv (#8664)
* Fix the use after free by removing instruction which was overriding 'r_cons_instance.num' struct by a new mallocated struct which is free at the end

* Fix new segv by saving old num and restore it before free is called

* spaces to tabs
2017-10-08 21:34:00 +02:00
Srimanta Barua
41ce16b314 added curved corners (#8660) 2017-10-08 13:09:27 +02:00
Jose Diaz
f1d7f821ff Removed global variables and fixed several leaks 2017-10-07 09:52:09 +02:00
Khairul Azhar Kasmiran
ab9368966e Cs: show unfiltered strings (#8605) 2017-09-29 12:33:24 +02:00
josediazfer
2328c5d31f Fix serveral leaks (#8606) 2017-09-28 16:32:54 +02:00
josediazfer
bacd615e0d Egg Issues (#8593)
* Fix pushing inmmediate args using the x64 arch
Added directive .rargX (ar0, ar1,...etc)

* replaced atoi() by r_num_math()
2017-09-27 11:29:15 +02:00
pancake
97911069b3 Initial port of io.winedbg using the new r_socket_spawn() api 2017-09-27 03:12:00 +02:00
xarkes
b4a1a595c9 pf segfault fix (#8592) 2017-09-26 23:45:42 +02:00
pancake
3adb70a753 Honor io.0xff in sparse RBuffers 2017-09-26 11:55:48 +02:00
pancake
106fedeef4 Add the 'null' debugger plugin 2017-09-23 02:34:37 +02:00
Khairul Azhar Kasmiran
8d061778bd Csj: add enc and ascii properties (#8570) 2017-09-20 18:27:33 +02:00
Fangrui Song
c43e6880fb Refactor search (#8566)
* fix out-of-bounds read in r_search_strings_update
* Remove static variables searchhits maplist maxhits first_hit in cmd_search.c
* Change semantics of r_search_hit_new (update kw->count s->nhits in it), return 2 if search.maxhits is reached and stop searching immediately
* honor search.maxhits in r_search_regexp_update
* Refactor _cb_hit, remove bckwrds/do_bckwrd_srch and static cmdhit
* Fix mem leak in regexp.c
* Add support for /d (delta) /bd (backward + delta) when crossing blocksize boundaries
2017-09-20 17:00:18 +02:00
Rene Laemmert
729c528c80 Added autoload of zignatures (#8554) 2017-09-18 17:48:19 +02:00
Fangrui Song
b549a1cf53 Fix comment spaces (#8547) 2017-09-18 05:54:13 +02:00
Fangrui Song
0dfa39590f Faster onIterMap (#8544) 2017-09-18 04:29:29 +02:00
pancake
030a22ca6b Add search.in={io.sections.readonly,dbg.maps.readonly} 2017-09-18 01:19:24 +02:00
Fangrui Song
4358de43b2 Fix backward search and string search across boundary in search.overlap=0 mode and fix mem leak (#8537)
* Fix mem leaks in search
* Fix backward search and string search across boundary in search.overlap=0 mode and fix mem leak
2017-09-17 23:44:04 +02:00
pancake
6ddc76ef37 Enhance r_str_const api, allowing to specify target cache 2017-09-17 02:27:03 +02:00
Fangrui Song
5b16d507d4 Fix O(n) duplicated calculation of skyline in _section_reapply 2017-09-17 01:10:53 +02:00
Fangrui Song
f6cf0dab04 Fix search.in=io.maps : search in non-overlapping RIOMap parts not overriden by others of higher priorities (skyline) 2017-09-17 01:10:53 +02:00
Fangrui Song
b2d5fac55c Fix search range of /x 2017-09-17 01:10:53 +02:00
Fangrui Song
2defeea47d Rename /f (search file) to /F and add /f (forward search) as per /b (backward search)
The search range will be the intersection of at most 3 intervals:

* search.in
* [search.from, search.to) if one of them is not UT64_MAX (default), which means the range is specified
* [core->offset, 2**64) if /f is used, [0, core->offset) if /b is used

Name the intersection `search_itv`

For each search boundary given by search.in, individual search is done in the intersection of it and search_itv
2017-09-17 01:10:53 +02:00
Fangrui Song
ac16dfdc8b Misc fixes to search
* fix /a tests, hoist r_search_kw_add
* fix /A tests
* respect search.{from,to} in append_bound
* fix /o out-of-bounds read
2017-09-17 01:10:53 +02:00
Fangrui Song
d9608fe186 Support powerpc64 PTRACE_GETREGS (#8529)
On BSD, addr and data are swapped. But on Linux, only SPARC strays.

Goodbye SPARC and Solaris.
2017-09-16 02:33:52 +02:00
Fangrui Song
deb7c07c63 Intrusive augmented top-down red-black tree 2017-09-15 19:36:57 +00:00
pancake
dcec3c0e99 Fix dupped extern C issue 2017-09-15 13:11:22 +02:00
Fangrui Song
f13c943193 Fix #8168 Add io.cache.{read,write} (#8510) 2017-09-15 11:32:01 +02:00
Rene Laemmert
c0e036dcb0 Fix #8498 r command should resize the map (#8518)
* Fix #8498 r command should resize the map

* removed useless check
2017-09-15 11:25:38 +02:00
Fangrui Song
1c4407cb69 Fix #8388 - Replace RIOMap::{from,to} with RAddrInterval itv. 2017-09-14 12:40:22 +02:00
Rene Laemmert
8f5f57a21b Fix #8335 printing correct offsets for all maps with on* 2017-09-13 13:45:50 +02:00
Fangrui Song
813e415a1c Fix #8189 - refactor search.c (#8195)
* fix r_search_mybinparse_update when locating `a+a+b` in `a+a+a+b` where len(a) > 1, e.g. locating `ababc` in `abababc`
* fix /d (r_search_deltakey_update) with same issue
* fix search.distance
* fix binmask
* swap the order of the nested loop
* add RSearch::maxhits . More work later
* add RSearch::data for data used by matching algorithm

before:
  for (i = 0; i < len; i++)
    r_list_foreach (s->kws, iter, kw)

after:
  r_list_foreach (s->kws, iter, kw)
    for (i = 0; i < len; i++)

rationale:
  + searching for more than one needles is rare. the branches used in inner loop harms performance
  + it's cumbersome to bookkeep for each `kw` in advanced searching algorithms
2017-09-13 11:48:59 +02:00
pancake
8315feb1d8 Bring back the levenstein and fix previous commit 2017-09-13 10:25:13 +02:00
pancake
24c85ac965 Bring back the levenstein diff and add missing function signatures 2017-09-13 10:16:19 +02:00
pancake
08f64793ea Implement r_io_map_reset and new command omm 2017-09-13 00:23:26 +02:00
Rakholiya Jenish
11e13f1c95 Fix node and edge overlapping issue in graph mode (#7948)
* initial work on fixing overlapping issues in graph mode

* better vertical gap calculation and minor fixes
* fix backedges overlapping issue
* fix backedge height and remove unnecessary functions
* horizontal graph
* add edge info for update graph size
graph size for horizontal layout
* fix leaks in agraph_print_edges
2017-09-12 15:41:30 +02:00
Fangrui Song
63731e9e81 Add help for ~:[s]-[e] show lines s-e & fix #8164 recursive help (#8474)
* Move r_core_cmd_help features to grep.c:r_cons_cmd_help to avoid dependency on r_core from r_cons
* Beautify r_cons_cmd_help & fix wp? & p?
* Fix #8164 recursive help (and add partial support for ??* ???*) & NULL terminate fz? Sl? Sr?

The support for ???* is partial because the current ad-hoc command
parser is obscure and hard to extend.
2017-09-12 11:05:24 +02:00
pancake
6d1be4ad06 Make r2k and gdb rwx by default 2017-09-12 01:26:38 +02:00
Fangrui Song
b597dcfa45 Add include/r_util/r_addr_interval.h (#8475) 2017-09-12 01:12:41 +02:00
Fangrui Song
a4997feb34 Move fortunes to libr/core/fortune.c (#8424) 2017-09-12 00:41:07 +02:00
pancake
99004f3c0b Enhance search.in boundaries by removing from/to and always use the list 2017-09-12 00:25:01 +02:00
Phoebe Queen
360dfcb470 Added dense qrcodes functionality, with inverter 'i' code (#8443) 2017-09-11 12:13:48 +02:00