Fare9
e81e153729
Added json feature for oL listing ( #8781 )
...
* Added json feature for oL listing
* Fixed space and braces problem
2017-11-04 20:55:26 +01:00
pancake
f23c1224ec
Fix seek for io.winedbg
2017-11-04 16:03:20 +01:00
pancake
6116682527
Fix Vpp for debug.io
2017-11-04 15:48:43 +01:00
pancake
a1e24700e3
Fixes for winedbg:// and debug.io
2017-11-04 15:37:09 +01:00
josediazfer
054c017651
Fix Try to fix attaching issues for Windows #8770 ( #8776 )
...
If we call CreateProcess function with DEBUG_ONLY_THIS_PROCESS flag then
fail DebugActiveProcess when execute the following radare command:
r2 -d test.exe
Removed verbose ouput :/
2017-11-03 19:52:45 +01:00
Jose Diaz
e74aadad28
Renaming char_to_w32 => utf8_to_utf16
2017-11-03 10:27:18 +08:00
Jose Diaz
527ff71d41
Convert char to windows unicode
2017-11-03 10:27:18 +08:00
Anton Kochkov
e370ad02f2
Try to fix #8622
2017-11-02 20:56:30 +08:00
josediazfer
c2b2ddfe4a
Fix crash io system w32dbg ( #8760 )
2017-10-30 18:56:19 +01:00
pancake
a5092e9e0b
Fix int -> char* for RIO.System
2017-10-24 13:50:05 +02:00
pancake
5132c88f4d
More code cleanup and tweaks for char* r_io_system
2017-10-23 00:45:01 +02:00
pancake
ca1b44e64d
Add dummy fs.io plugin, r_io_system now returns char*
2017-10-22 23:52:07 +02:00
pancake
432016de20
op->oL, o fd -> op
2017-10-20 01:12:45 +02:00
pancake
24307b6753
Add io->ret to hold return value
2017-10-12 01:57:19 +02:00
mrmacete
2dcf8ded72
Fix side effect on offset in r_io_shift
2017-10-08 05:21:38 +02:00
Srimanta Barua
5eebf1efba
sort of remove infinite loop
2017-10-05 11:01:44 +02:00
Anton Kochkov
d38f2a062b
Fix coverities
2017-10-02 18:59:54 +08:00
pancake
0651877ca0
Fix winedbg warnings
2017-09-30 15:55:11 +02:00
pancake
b9d67d9934
More fixes for winedbg:// and debug.io
2017-09-27 16:43:46 +02:00
pancake
05315c9270
Implement drp and dr8 for winedbg://
2017-09-27 14:54:00 +02:00
pancake
89d20763fc
Fixes for winedbg:// and crashes in -Dio
2017-09-27 04:58:15 +02:00
Anton Kochkov
c70800d12f
Add io.winedbg to meson build
2017-09-27 09:35:09 +08:00
pancake
7cc7540458
Oops add missing files
2017-09-27 03:27:27 +02:00
pancake
3adb70a753
Honor io.0xff in sparse RBuffers
2017-09-26 11:55:48 +02:00
pancake
9b5eda95e6
Support spawning processes with spaces in path
2017-09-26 11:44:43 +02:00
pancake
71a6177b8a
Fixes for the gdb-avr backend, lower min pkgtsz and fix tid<1 issue
2017-09-25 10:47:27 +02:00
pancake
86d2c31c37
omm works without args now
2017-09-23 02:23:26 +02:00
Srimanta Barua
3640a7cb8b
paged reading for gdb (otherwise it doesn't work on qemu) ( #8572 )
2017-09-20 13:33:45 +02:00
Srimanta Barua
915589b51d
cleaned up and corrected memory reading ( #8568 )
2017-09-19 15:02:49 +02:00
Fangrui Song
8c12935303
Honor io.0xff ( #8557 )
2017-09-18 22:14:25 +02:00
Fangrui Song
0dfa39590f
Faster onIterMap ( #8544 )
2017-09-18 04:29:29 +02:00
pancake
f805d0672a
Fix warnings
2017-09-17 23:27:43 +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
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
pancake
0e456c8815
Fix some invalid delegates checks in io
2017-08-27 17:01:16 +02:00
pancake
549a9728e1
Fix null derefs in io.section
2017-08-27 13:47:55 +02:00
condret
e2363da139
implement remapping in map-API
2017-08-27 04:13:47 +00:00
alvarofe
e7a43b679a
Add new api to get current fd
2017-08-27 02:23:07 +02:00
pancake
9d8d9023d0
Avoid double aeim loads and fix frida:// bin.load double-open
2017-08-27 00:42:08 +02: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
f403481e9f
more AccessLog sugar for esil, and typo fixes
2017-08-26 19:26:24 +00:00
Giovanni
52826ff3ef
7 more coverity bugs fixed ( #8306 )
...
* 1379842/1379836 Resource leak
* 1379834 Resource leak
* 1379742/1379747/1379748/1379749/1379750/1379747/1379760 Resource leak
* 1379752 Resource leak
* 1379751 Double free
* 1379743 Use after free
* 1379624 Uninitialized scalar variable
* 1379332 Out-of-bounds read
2017-08-26 13:08:53 +02:00
alvarofe
6b7e00ddcc
Use r_io_desc api insted to dereference pointers
2017-08-26 11:03:46 +02:00
pancake
ec6b809728
Minor cleanup in onIterMap
2017-08-26 02:52:33 +02:00
pancake
7650fd3b20
Bring back S=
2017-08-26 01:05:22 +02:00
pancake
d91a4a8166
Make r2 -x by default and fix other recent io regressions
2017-08-26 00:13:24 +02:00
pancake
4d9c2b7bb1
Fix null deref that was making t/spaces fail
2017-08-25 23:47:21 +02:00
pancake
16dcd8c10e
Fix r_io_seek and coreBlockShift crash
2017-08-25 23:45:37 +02:00
pancake
48869fc5c7
Fix #8272 - Implement @@s:from to step
2017-08-25 18:57:55 +02:00
Giovanni
c4b3b06883
fixed dereferences after null check ( #8298 )
...
* fixed dereferences after null check
* Fixed flavour and changed 0xffffffff to UT32_MAX
* removed old code
2017-08-25 12:17:28 +08:00
condret
6998fa28b0
add another squasher for analysis
2017-08-25 00:04:08 +00:00
condret
08421b288d
more RIOAccessLog for analysis
2017-08-24 21:15:38 +00:00
condret
17ef439948
reimplement RIOAccessLog, better and much more elegant than the last time
2017-08-24 18:13:12 +00:00
condret
bb0f541402
don't access desc in va, when there is no map
2017-08-24 14:25:19 +00:00
condret
43295b5e7c
fix section order
2017-08-24 14:15:54 +00:00
Giovanni
7c24a96aa9
fixed memory leak on p_cache ( #8296 )
2017-08-24 13:36:19 +02:00
Giovanni
885ea3ca60
fixed null deref on function pointer ( #8297 )
2017-08-24 13:35:57 +02:00
pancake
e873c44f78
Fix infinite loop in a2f
2017-08-24 11:54:54 +02:00
Anton Kochkov
660963593b
Fix MSVC build
2017-08-24 13:39:12 +08:00
alvarofe
fda243a996
Fix r_io_read_i and add new helper function
...
This should fix cmd_av test
2017-08-24 01:00:07 +02:00
condret
b0c612bf0f
kill is_valid_section_offset ( #8288 )
2017-08-24 00:19:57 +02:00
alvarofe
6561932f99
Fix a little bit analysis
2017-08-23 22:37:29 +02:00
alvarofe
ad601da9d5
Avoid to read from io->desc when map is not found
2017-08-23 21:58:36 +02:00
pancake
4dd45b73e9
Fix some last covs
2017-08-23 16:45:05 +02:00
condret
056e527f9e
cleanup again
2017-08-23 14:58:00 +00:00
condret
132bee52ee
copypasta woodhammer to fix onIterMap
2017-08-23 13:49:06 +00:00
alvarofe
87dac97a3a
Roll back change in section order causing crashes
2017-08-23 12:28:55 +02:00
condret
b13226c7d2
invert seciion order, might fix something
2017-08-23 10:36:32 +00:00
condret
5b397c4bd1
fix remapping. pls don't break it anymore
2017-08-23 04:28:02 +00:00
condret
0d0e94aa3b
more pcache config
2017-08-23 02:36:21 +00:00
pancake
97f45e17af
Fix cmd_extend tests
2017-08-23 01:36:48 +02:00
Fangrui Song
8a9fb41a16
Fix section flags and more siol fixes
2017-08-23 01:09:45 +02:00
xarkes
ee4f42d13e
Ar fixes (Added filename table)
2017-08-23 01:07:21 +02:00
condret
edc700d768
fix pcache at the end of file
2017-08-23 00:28:47 +00:00
condret
41cb6ef0d2
use more fd-api
2017-08-23 00:05:16 +00:00
alvarofe
ab25e7119c
Update r_io_read_at and ad r_io_alprint
2017-08-22 23:56:12 +02:00
alvarofe
c440ee4fc2
memset to 0x00 in null plugin io
2017-08-22 22:59:40 +02:00
alvarofe
d489e1ca2c
Fix bug with r_io_alvread_at
...
The check at the beginning was wrong
2017-08-22 22:30:08 +02:00
alvarofe
0105724d1f
Fix issue with onIterMap
...
If map is not found the desc map is used, that is why the check should
be made against <= 0
2017-08-22 22:28:21 +02:00
condret
e3255d5f65
bring fd-api to RIOBind, for LOC reduction in bin
2017-08-22 21:19:57 +00:00
SkUaTeR
560bf70b6f
Fix meson siol ( #8268 )
...
* some fixes in meson to build under windows
* some fixes in meson to build under windows
2017-08-22 20:10:24 +02:00
alvarofe
d2a43bfa72
Fix r_io_use_fd
...
When we have two fd and one gets closed io->desc is NULL, therefore
returning against this condition, made the code unpredictable because of
this
2017-08-22 17:25:41 +02:00
condret
0161fa0ec2
make read_at bool again and implement RIOAccessLog for accurate error-handling
...
This reverts commit a9bf4aae2b
.
2017-08-22 17:24:04 +00:00
alvarofe
4e3cf3d202
Remove damn stray character
2017-08-22 16:39:38 +02:00
alvarofe
fbdf71d513
Fix wrong API usage
2017-08-22 16:03:33 +02: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
Anton Kochkov
cecc20aa97
Fix meson build
2017-08-20 05:04:53 +08:00
condret
45fb32a213
cleanup rbufplug and make it a usual plugin
2017-08-19 22:45:43 +00:00
Anton Kochkov
64f7e2a93a
Fix meson build
2017-08-20 04:44:11 +08:00
pancake
62b45bce07
More build fixes for android
2017-08-19 20:05:21 +02:00
pancake
e2719df4dc
Fix another io regression
2017-08-19 19:23:09 +02:00
pancake
3867f1ec88
Fix the Linux debugger io
2017-08-19 19:17:09 +02:00
pancake
0771170ae6
Kill io.sectonly and make io.va work as expected
2017-08-19 13:26:51 +02:00
Fangrui Song
e3510cdb65
Fix __desc_cache_commit_cb ( #8240 )
2017-08-19 10:36:39 +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
condret
ea52254c52
add fd abstraction api, and make desc-api a bit more consistent
2017-08-19 02:23:51 +00:00
condret
bbf05a13c4
fix pcache for desc_read and desc_write
...
add desc_read_at and desc_write_at for @pancake
2017-08-19 00:37:42 +00:00
pancake
a4742a684e
mingw32 fixes
2017-08-18 19:45:38 +02:00
Álvaro Felipe Melchor
6801a89e1c
Bring onIterMap from siol - there's no tomorrow
2017-08-18 20:03:29 +02:00