1168 Commits

Author SHA1 Message Date
Fangrui Song
835d432b06 Misc fixes to io and search 2017-09-17 01:42:56 +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
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
pancake
f266f6b740 Fix last covs - mainly null derefs and undefined vars 2017-09-13 12:13:20 +02:00
pancake
08f64793ea Implement r_io_map_reset and new command omm 2017-09-13 00:23:26 +02:00
pancake
a3a339b38c Fix static build 2017-09-12 22:31:54 +02:00
pancake
bc6024f3a4 Fix null deref in io.c 2017-09-12 12:26:09 +02:00
Nicole Fontenot
a733612d40 Add error printing on execvp failure. Fixes #8471 2017-09-12 11:07:30 +02:00
pancake
b5979a4b3e Fix more crashes related to gdb and native mixtures 2017-09-12 02:23:44 +02:00
pancake
eb64f16fa3 Fix some null derefs in r2 gdb:// (without -d), still buggy 2017-09-12 01:51:18 +02:00
pancake
6d1be4ad06 Make r2k and gdb rwx by default 2017-09-12 01:26:38 +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
pancake
94b2fc64d2 Implement RIODescData and adjust RIOMach to work with it
- Handles a magic to ensure the destination struct is the expected one
- Based on r_str_hash, but it must be cached
- Use more r_io_desc_get_pid ()
2017-09-11 01:24:13 +02:00
condret
18f1517f21 fix mao-order 2017-09-09 13:36:41 +00:00
Srimanta Barua
749af4c414 fix monitor commands bug 2017-09-08 11:30:50 +02:00
condret
f03e2e4fef fix some stuff 2017-09-07 18:27:40 +00:00
condret
1701f0f8c1 Revert "Fix onIterMap, use int for some internal IO functions to simplify (#8279)"
- Will commit a testsuite to show that was wrong (r_io_read_at was returning false in some situations)
2017-09-07 17:09:25 +02:00
pancake
1aec09f2be Fix null deref when using different debug and io plugs 2017-09-06 18:47:55 +02:00
Fangrui Song
e472e74b9d Move {RAsm,RAnal}::addrbytes to RIO::addrbytes, delete asm.addrbytes and make cLEMENCy work again (#8432) 2017-09-04 21:41:09 +02:00
alvarofe
39117820e7 Address other warnings 2017-09-04 17:57:43 +02:00
alvarofe
3a0a26edc3 Fix warning 2017-09-04 17:51:48 +02:00
alvarofe
1a2857539f Add bin_id into S creation command 2017-09-04 17:51:47 +02:00
alvarofe
ee98981940 Some fixes IO related 2017-09-04 17:51:47 +02:00
alvarofe
fd47913e90 Fix io_gzip plugin 2017-09-04 12:19:16 +02:00
alvarofe
d2159f379d Added API to get a map by its paddr 2017-09-02 23:17:39 +02:00
alvarofe
2f8f045cfd Add r_io_desc_extend 2017-09-01 17:09:17 +02:00
condret
5cb0e7050d fix returnvalue for getbase^ 2017-09-01 01:10:32 +00:00
SkUaTeR
50c2965d4a Add getbase callback for io (#8392) 2017-08-31 19:52:07 +02:00
SkUaTeR
60dc5db0bf windows debugger fix siol (#8390) 2017-08-31 18:44:31 +02:00
condret
b852a180d3 bring resize to desc and fd api 2017-08-31 15:24:19 +00:00
alvarofe
3d9bade322 Fix io_zip plugin after crashes and regression due to leaks 2017-08-30 23:54:15 +02:00
alvarofe
719612816d Fix jmptbl test 2017-08-30 23:04:40 +02:00
alvarofe
82de0bea57 Fix r_io_map_add to be less restrictive
To allow this

air:vsf alvaro$ r2 ../../bins/vsf/c128-rhps-norom.vsf
 -- This page intentionally left blank.
[0x0000ff2f]> S
[00:00] * pa=0x0000008c mrwx va=0x00000000 sz=0x10000 vsz=0x10000 RAM_BANK_0
[00:01] * pa=0x0001008c mrwx va=0x00000000 sz=0x10000 vsz=0x10000 RAM_BANK_1
[0x0000ff2f]> om
 2 fd: 3 +0x0000008c 0x00000000 - 0x0000ffff -r-x fmap.RAM_BANK_0
 1 fd: 3 +0x0001008c 0x00000000 - 0x0000ffff -r-x fmap.RAM_BANK_1
2017-08-29 19:59:27 +02:00
alvarofe
7c90d05bef Fix crashes due to pointer arithmetic and NULL dereference 2017-08-29 19:09:45 +02:00
Giovanni
2740763886 Merging all cov fixes (#8377)
* 1356272 Resource leak
* 1356452,1356450 Resource leak
* flavour + strdup and fixed mistake
* 1361500 Resource leak
* 1360784 Resource leak
* 1367821 Resource leak
* removed missing allocated vars
2017-08-29 13:15:47 +02:00
Giovanni
d084d92ff0 Coverity bugs 29 aug (#8376)
* 1380031 Resource leak
* 1380032 Logically dead code
* 1380034 Dereference before null check
* 1380035 Explicit null dereferenced + flavour
* 1361726 Resource leak
2017-08-29 12:39:04 +02:00
alvarofe
c652ac8ae6 Fix regression 2017-08-28 22:48:28 +02:00
alvarofe
2a186fdcf4 Fix a little bit java by mapping desc 2017-08-28 22:08:50 +02:00
Giovanni
cee685cda2 1368054 Out-of-bounds read (#8360) 2017-08-28 16:50:26 +02:00
Srimanta Barua
bbda39982b Added backtrace to gdb (#8361) 2017-08-28 16:40:12 +02:00
Álvaro Felipe Melchor
514930fc3a Fix off-by-one reported by @ret2libc (#8362)
half and closed ranges strikes
2017-08-28 16:30:39 +02:00
xarkes
4e36b5b8aa Fixed meson build (#8358) 2017-08-28 15:09:58 +02:00
Fangrui Song
4331773b3f Move _section_chk_dup to cbin.c (#8346) 2017-08-28 03:03:50 +02:00
Fangrui Song
12157250cc Add a bool argument do_skyline to r_io_map_{add,new} (#8344)
We can do some precomputation when the map structure changes (add/delete/remap/...).
2017-08-28 01:27:28 +02:00
Fangrui Song
ee40472c9f Add io->map_skyline as an RVector of uncovered map parts to enable optimization of r_io_v{read,write}_at in the future (#8332)
* Add binary heap (as priority queue) to util/binheap.c
* Change cmp_less in r_vector.h to 3-way cmp
2017-08-27 18:05:58 +02:00
Fangrui Song
034fcfbe00 Fix onIterMap, use int for some internal IO functions to simplify (#8279)
The return types of public API are not changed.
2017-08-27 17:59:11 +02:00