108 Commits

Author SHA1 Message Date
pancake
41ec949204 Fix #11112 - Rename {srwx,flags,perms} to perm. (-21 LOC)
Unify R_IO, R_BIN, R_BP, .. into R_PERM_* using 1 letter syntax
2018-09-22 11:31:45 +02:00
Riccardo Schirone
49e548bff9 io: make update_skyline private 2018-09-03 11:18:10 +02:00
Riccardo Schirone
d196c755dd io: make r_io_map_add always update skyline
keep a "private" version named io_map_add that can be used for
performance reaons internally in the io module.
2018-09-03 11:18:10 +02:00
Riccardo Schirone
be8ece36a7 io: make r_io_map_new always update skyline
keep a "private" version, named io_map_new, which can be called by the
io module for performance reasons (e.g. loading many maps, you don't
want to sync the status every time when you can do that only one time at
the end of the batch insertion).
2018-09-03 11:18:10 +02:00
Fangrui Song
d3442c3897 Fix binheap comparator & omp
This fixes the 3 XX tests in 9280cabb15
2018-08-26 02:02:02 +02:00
Florian Märkl
7577c674ef Add RPVector struct 2018-07-30 18:49:37 +02:00
Florian Märkl
182ab836ef Fix pvector usage in _map_skyline_push 2018-07-30 18:49:37 +02:00
Florian Märkl
d5c1fcfd74 Implement flat RVector and pvector 2018-07-30 18:49:37 +02:00
radare
3bd0368a43
Fix #10444 - aav, /v enforces the map information, considering null:// (#10508)
* Improve isValidAddress validation for aav (slower checks, faster when unallocated on fuzzed bins)
2018-07-09 16:32:34 +02:00
pancake
95d346b611 Fix #10674 - pzq and gcc build 2018-07-09 01:13:29 +02:00
pancake
da4a1bbc46 Implement ompd to depriorize a map 2018-07-08 02:57:39 +02:00
pancake
57c2bb3a4b Create map when reusing descriptors 2018-07-08 02:11:01 +02:00
Adrian Studer
207e8596cd refactor for riobind 2018-02-03 19:22:56 +01:00
pancake
b926122772 Use RInterval in io.cache and io.pcache, renaming and code cleanup 2018-01-10 02:35:11 +01:00
pancake
0b1e8eaecc Fix almost all warnings from the msvc build 2017-12-19 00:18:39 +01:00
pancake
432016de20 op->oL, o fd -> op 2017-10-20 01:12:45 +02:00
Fangrui Song
767cc96496 Fix r_io_map_{remap,resize} (#8527) 2017-09-17 02:23:26 +02:00
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
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
08f64793ea Implement r_io_map_reset and new command omm 2017-09-13 00:23:26 +02:00
condret
18f1517f21 fix mao-order 2017-09-09 13:36:41 +00:00
alvarofe
d2159f379d Added API to get a map by its paddr 2017-09-02 23:17:39 +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
xarkes
4e36b5b8aa Fixed meson build (#8358) 2017-08-28 15:09:58 +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
condret
e2363da139 implement remapping in map-API 2017-08-27 04:13:47 +00:00
condret
7a87c8ba84 bring the mapslit back from old libsiol 2017-08-27 00:39:34 +00:00
pancake
3f94f69e60 Enhance error checking in om and avoid adding the same map twice 2017-08-26 23:33:27 +02:00
condret
132bee52ee copypasta woodhammer to fix onIterMap 2017-08-23 13:49:06 +00:00
Fangrui Song
8a9fb41a16 Fix section flags and more siol fixes 2017-08-23 01:09:45 +02:00
condret
0161fa0ec2 make read_at bool again and implement RIOAccessLog for accurate error-handling
This reverts commit a9bf4aae2bdca2c139f482c3f0e098fe6ece1ee0.
2017-08-22 17:24:04 +00:00
Fangrui Song
a9bf4aae2b Misc fixes to siol (#8262)
* Fix onIterMap (divide-and-conquer like USACO Shaping Regions), check return values of every `op` call
* Change return types of r_io_read_at and friends back to `int`
* Fix some analysis tests and others
* Fix mem leaks
2017-08-22 10:46:48 +02:00
condret
2f201bded0 opsalamance - merge the big siol branch
- Thanks @MaskRay and @condret
2017-08-22 09:42:16 +02:00
Fangrui Song
ef292c8468 Fix off-by-1 in io.c (#8239)
Also removed incorrect r_io_map_is_in_range
2017-08-19 10:07:13 +02:00
Álvaro Felipe Melchor
6801a89e1c Bring onIterMap from siol - there's no tomorrow 2017-08-18 20:03:29 +02:00
alvarofe
492efde563 WIP fixes 2017-08-18 01:32:25 +00:00
alvarofe
2e462ec8f0 Bring RIODesc from SIOL and cleanup 2017-08-18 01:31:57 +00:00
pancake
01477c74f0 More coverities fixed 2017-04-05 10:59:37 +02:00
pancake
c355d6ed5e Fix null deref in cbin->info 2017-01-05 10:57:50 +01:00
pancake
589ac97bda Fix some overflow-related covs 2016-10-26 23:40:17 +02:00
Álvaro Felipe Melchor
0e4e39db79 fix somes coverities 2016-06-30 23:38:41 +02:00
pancake
e3bcc9e7a2 More refactorings, reindent and cleanup on r_io 2016-06-20 09:12:44 +02:00
pancake
010c2c68ab Fix all COVs in r_io 2016-06-14 02:14:52 +02:00
Sven Steinbauer
547f8bbc5c Infer fixes Round 2 (#4993) 2016-05-24 22:22:15 +02:00
pancake
c2f5b72c80 Fix #4010 - axg: show recursive xrefs tree 2016-02-23 02:31:53 +01:00