Commit Graph

562 Commits

Author SHA1 Message Date
LemonBoy
d60d0d8805 Fix #1114 2014-07-11 23:05:11 +02:00
pancake
be34dbf9cd Honor dbg.profile in io/debug
$ cat p.r2
 arg1=/
 $ r2 -e dbg.profile=p.r2 -d ls
2014-07-09 03:48:47 +02:00
pancake
dc4a8f440b Enable r_run in debugger 2014-07-09 03:31:04 +02:00
pancake
667ebad3eb Fix build 2014-07-09 03:12:39 +02:00
pancake
8b74f1ffcf Merge Rarun2 into RSocket and use it from dbg.profile in Core 2014-07-09 02:24:31 +02:00
pancake
9efb41594b Initial WIP support for ASLR var in rarun2 profiles and io/debug 2014-07-08 13:40:33 +02:00
pancake
88687d9da4 Check return value of fstat 2014-07-03 09:46:12 +02:00
pancake
d328957768 Update sdb to fix '***' and add r_asm_get_plugins 2014-07-03 00:03:01 +02:00
pancake
3bf30c8baf Fix build on w32 2014-07-01 14:42:50 +02:00
pancake
151d56869e Workaround blkdevice size on XNU 2014-07-01 14:37:53 +02:00
pancake
6863da3df3 Ignore sections at vaddr=0 (fixes some crappy elfs) 2014-06-27 03:10:09 +02:00
pancake
42617b6cef Colorize S? and shrink sz/vsz from %08 to %04 2014-06-27 01:43:04 +02:00
Jonathan Neuschäfer
40c5eb0177 fix an out-of-bounds read in __resize/r_io_resize 2014-06-25 11:45:09 +02:00
pancake
377b5bb2fe Clean a huge list of warnings 2014-06-25 02:07:38 +02:00
pancake
bb4dadc0a9 Honor R_IO_WRITE open flag 2014-06-20 17:02:57 +02:00
pancake
3f7e1935fa Fix io.cache oob read bug? 2014-06-16 01:17:45 +02:00
condret
129646d925 Refactor the new io-read-api (disabled by default) 2014-06-14 00:07:16 +02:00
condret
6b1efd8ecd Add R_ERROR and fix RIOSection.get_{first,in}_{vaddr,paddr}{_range} 2014-06-11 17:42:42 +02:00
pancake
b5ae986524 Fix #1004 - x86 "sete" not supported #1004 2014-06-10 16:24:01 +02:00
pancake
7cc14b429c Add missing check in malloc return value 2014-06-10 11:50:11 +02:00
pancake
6aba134a7e Finish s/io.ffio/io.ff/ 2014-06-10 11:20:17 +02:00
Anton Kochkov
8b911cb0f0 Fix CID 1134728 2014-06-07 14:37:29 +04:00
pancake
298f2558ca oops 2014-06-06 22:54:30 +02:00
pancake
4c1ef71e46 Fix -w with io.va 2014-06-06 22:37:18 +02:00
pancake
939fd989a9 Fix r2 -w <nonexistentfile> 2014-06-06 22:34:03 +02:00
jvoisin
3affd8ecb2 Fix two gcc warnings 2014-06-06 13:22:52 +02:00
pancake
1de37f419a Fix cmd_pD tests by handling addressing overflows 2014-06-05 03:29:11 +02:00
pancake
39675d0886 Fix static linking (android builds working again) 2014-06-05 01:50:56 +02:00
pancake
26be34439a Fix r_io_mach_read for partial reads on segment limits 2014-06-05 01:32:05 +02:00
pancake
00d283a398 Fix all latest coverity issues 2014-06-04 23:57:24 +02:00
pancake
cc324e743a Fix some warnings 2014-06-04 22:33:56 +02:00
pancake
eabf76cb1e Enable io->autofd by default and set if no curfd is set 2014-06-03 17:10:38 +02:00
condret
0f9495400d add io->autofd 2014-06-03 17:06:56 +02:00
condret
b75ea56f6c make r_io_desc_seek more reasonable in usage 2014-06-02 15:31:06 +02:00
condret
eafafa574e try to fix r_io_desc_seek 2014-06-02 00:54:32 +02:00
pancake
ba57864617 Rollback to use the old io api. 2014-05-31 12:14:49 +02:00
pancake
c225694c7c Fix build and several coverity issues 2014-05-29 15:27:18 +02:00
pancake
8d663ceb94 Some rework on RBin.baddr and laddr to make it work again
Not all fileformats return correct data in Sections, this is
why sometimes the relocation with baddr (needed for aslr) fails
on mach0 for example. This code needs to be redesigned and fixed.
2014-05-29 00:49:28 +02:00
pancake
dd67819923 Fix ioff, merge RCore.ffio into and add a workaround for baddr 2014-05-28 19:32:29 +02:00
pancake
65d64d5274 Honor io.raw in new io. All debuggers fail in the same way
Temporal fix is to use `-nd` or `-nD`
2014-05-28 04:40:22 +02:00
pancake
5e33a8a282 Initial huge refactoring of r_io still work in progress 2014-05-28 04:34:12 +02:00
pancake
bb16d1737c Add initial XCore capstone disassembler and code analysis plugins 2014-05-27 23:08:59 +02:00
jvoisin
daae56f17f Fix CID 1205222 2014-05-27 16:41:20 +02:00
pancake
894238ca89 Fix io/ptrace plugin on Linux 2014-05-26 11:33:39 +02:00
pancake
65fd1e4d5a Almost fix the io/ff and partial reads issue 2014-05-26 03:52:46 +02:00
pancake
576c9d6221 Fix ASLR (rabin2, r2 -B working again), sort i? output 2014-05-26 03:06:29 +02:00
pancake
7751882675 Add io.raw which is set when debugger mode is enabled 2014-05-25 02:23:33 +02:00
deeso
d15b599179 Reverting the changed io until "raw" access to r2 dataspaces is realized 2014-05-24 10:47:58 -05:00
jvoisin
5f34c17f8d Fix CID 1215264 2014-05-22 15:28:54 +02:00
jvoisin
533bd261bb Fix CID 1215265 2014-05-22 14:52:51 +02:00
deeso
ccc3794eeb Fixed the 0xff io bug 2014-05-22 02:17:09 -05:00
deeso
6d21408a31 Changing the listing of the Section Id to the position in the RIO Sections List 2014-05-21 14:01:21 -05:00
deeso
a702c82ac8 Enhance performance with reduced mallocs at load time 2014-05-21 13:02:02 -05:00
pancake
821cd215d6 Fixed io_default/write crash and malfunction 2014-05-21 04:36:53 +02:00
pancake
796dedf83c Fix close(0) issue in rio 2014-05-21 01:46:01 +02:00
jvoisin
956eba4a8e Fix CID 1135064 2014-05-19 23:47:13 +02:00
Anton Kochkov
9c7b579c46 Fix a typo 2014-05-19 09:06:38 +04:00
Anton Kochkov
eb2f9529cd Fix CID 1214584 2014-05-19 05:31:07 +04:00
Anton Kochkov
c7a101d7e2 Fix CID 1214580 2014-05-19 05:28:12 +04:00
pancake
fd3251d99c Refix 'r' command issues 2014-05-19 02:52:51 +02:00
pancake
b7eaf03813 Workaround for the famous io/ff, this is not a final fix 2014-05-18 02:37:34 +02:00
pancake
2494e22a4d Add rawio support in RIO (allows to open /dev/sda f.ex), Add io.enforce=0|1|2|3 2014-05-18 02:19:11 +02:00
pancake
ea0c2caa59 Add sys/ios-sdk build scripts 2014-05-17 04:41:33 +02:00
pancake
c6a73d3074 Fix loading sections from fatmach0 bins 2014-05-16 03:48:57 +02:00
deeso
1fbc7f2168 Added load_bytes, Pushed curplugin down to RBinObj, Reworking the RBinFIle loading to accomodate RBinObj reworked how all bins are loaded. Needed to hack IO to make
this work with rbinfiles and rbinobjects.

Conflicts:
	libr/bin/bin.c
	libr/bin/p/bin_te.c
2014-05-13 21:54:18 -05:00
jvoisin
818a907bf4 Fix CID 1135070 and some GCC warnings 2014-05-11 13:41:21 +02:00
jvoisin
f664e91c1b Fix CID 1135045 and some GCC warnings 2014-05-11 13:34:55 +02:00
jvoisin
e0024940ca Fix CID 1134851 2014-05-11 13:31:59 +02:00
jvoisin
4fbebae5f6 Fix CID 1134511 2014-05-11 13:28:39 +02:00
jvoisin
914a0411ca Fix CID 1134506 2014-05-11 13:27:26 +02:00
jvoisin
76fbd4119c Fix some gcc warnings 2014-05-08 23:20:42 +02:00
pancake
773b033620 Fix negative/huge mallocs in PE parser and fix invalid fd close 2014-05-08 01:32:06 +02:00
Anton Kochkov
53d58db5bb Fix CID 1211145 2014-05-06 01:23:06 +04:00
jvoisin
3fbd1645d7 Fix CID 1211149 2014-05-05 17:44:08 +02:00
jvoisin
bdb2a4b568 Fix CID 1211150 2014-05-05 17:40:55 +02:00
Anton Kochkov
f762584982 Fix CID 1134991 2014-05-04 18:30:17 +04:00
Anton Kochkov
2d03b0a6f6 Fix CID 1134867 2014-05-03 04:29:10 +04:00
Anton Kochkov
14fb1b2b6a Fix CID 1134850 2014-05-03 04:29:10 +04:00
Anton Kochkov
b91a555475 Fix CID 1134812 2014-05-03 03:40:04 +04:00
deeso
14354feb61 fixed MMap Read-Write issue in io plugins and RBuf 2014-05-02 16:43:47 -05:00
deeso
3adcb54f17 Overhauled how files are loaded. Now *all* files use an IO plugin the default one is mmap'ed 2014-05-01 20:13:57 -05:00
jvoisin
7be0331d6d Fix CID 1134512 2014-04-30 01:37:27 +02:00
Anton Kochkov
7b3db8b1b1 Fix CID 1171364 2014-04-30 02:38:04 +04:00
Anton Kochkov
f78e258b52 Fix CID 1181834 2014-04-30 02:30:08 +04:00
Anton Kochkov
47e5524be1 Fix CID 1191355 2014-04-30 02:19:55 +04:00
Anton Kochkov
b483d9189c Fix CID 1135070 2014-04-28 22:40:22 +04:00
pancake
b49195f2df Fix lot of warnings 2014-04-28 11:53:22 +02:00
Anton Kochkov
afedcc0074 Fix CID 1135011, 1195065, 1134730, 1134754, 1134907, 1134758 2014-04-27 01:06:13 +02:00
Anton Kochkov
c635b5fff1 Fix CID 1134736 2014-04-26 04:02:29 +04:00
Anton Kochkov
51736bd435 Fix CID 1134485, 1134486 2014-04-26 01:53:23 +04:00
pancake
91e4f7659b Fix heap overflow in io/cache.c (Thanks @nixerr) 2014-04-25 03:03:17 +02:00
deeso
d5908941fb Steps toward fixing the reopen of a file being debugged 2014-04-24 18:21:40 -05:00
deeso
c6a7faad77 fixed the bug with the insane fuzz command 2014-04-22 23:06:00 -05:00
pancake
836803d786 Sdbize RBin.list_archs(). Expose addrinfo in 'k bin/fd.#/addrinfo/*' 2014-04-23 03:57:13 +02:00
Anton Kochkov
1956dc669d Fix CID #1135135 2014-04-20 03:38:01 +04:00
Adam Pridgen
af800c4b1b fix to wen because the size caused an incorrect allocation 2014-04-08 17:47:26 -05:00
Adam Pridgen
b182b23b40 fixing the following coverity issues, which entails the issue with print and most of the java issues:
1196398, 1196403, 1196402, 1196401, 1196400, 1196413, 1196415, 1196414, 1196411
2014-04-05 00:39:17 -05:00
Adam Pridgen
3ddac2d893 Fixed yank from file RCoreFile swap, and fixed logic bug in io.c that would prevent file swaps 2014-04-02 13:10:26 -05:00
Adam Pridgen
f8679bb888 Fixed yank from file RCoreFile swap, and fixed logic bug in io.c that would prevent file swaps 2014-04-02 13:10:03 -05:00
condret
cd92dfee31 fix an io-map bug
this makes the wall of 0xff at the end of this video less scary : http://runas-racer.com/foo/io_bugs.mp4
2014-03-31 03:07:50 +02:00