Commit graph

285 commits

Author SHA1 Message Date
Anton Kochkov
1479aeca8e Fix a few Coverity issues
Fix CID 1205204
Fix CID 1171365
Fix CID 1135001
Fix CID 1134921
Fix CID 1134848
Fix CID 1134840
Fix CID 1134824
Fix CID 1267983
Fix CID 1230038
2015-04-19 03:15:29 +03:00
pancake
87162dc8bf Add wta support for appending dump. 2015-04-03 04:11:26 +02:00
pancake
ef6c71208d Fix tons of input crashes reported in #2220 2015-03-22 23:24:13 +01:00
jvoisin
b8cdd7c0f7 Even more coverifix 2015-02-11 21:51:13 +01:00
Jeffrey Crowell
8f7fcc91ce purge core->files list when we close all files. 2015-02-06 21:05:46 -05:00
Jeffrey Crowell
87f6af96a3 don't print files if they're not opened.
fixes #2054
2015-02-06 20:52:08 -05:00
pancake
952469afed Bring back the DWARF 2015-02-03 10:08:21 +01:00
pancake
0cb78f973e Fix #2004 - filter flag names in dm* 2015-01-29 02:25:00 +01:00
jvoisin
1a17b5b420 Coverifix++ 2015-01-27 16:03:18 +01:00
pancake
45bbb096a4 Fix bugs in formatted string in 'o' 2015-01-24 23:26:17 +01:00
pancake
d08015cf66 Add f--, fs-*, o--, enhace Po a lot
- Handle all internal information deinitialization in:
  - flags, io, core, bin, anal
- Fix w32 build
2015-01-22 02:22:29 +01:00
pancake
fb31e2405d Honor PDB_SERVER and rename pdb.sym_srvr to pdb.server 2014-12-24 19:49:07 +01:00
pancake
90901e2928 Fix some COVs 2014-12-22 15:41:05 +01:00
pancake
9a5a39a804 Add oj and o*, to list opened files in JSON and r2 commands 2014-12-19 13:46:04 +01:00
pancake
9a0d62da22 Finally remove the void*debug pointer from RIOPlugin (use bool isdbg) 2014-11-21 11:36:51 +01:00
pancake
81f1fd41b7 Fix coverity issues 2014-11-09 18:29:24 +01:00
pancake
b40bce8284 Fix all latest Coverity issues 2014-11-07 10:52:44 +01:00
pancake
7cc34c4387 Fix use-after-free in RCoreFile/RIO 2014-11-07 10:37:54 +01:00
pancake
8042a54077 Fix crash in access to freed memory 2014-11-03 13:36:58 +01:00
pancake
dcfb90ae94 Wip Fix r2 -d oo (workaround, because it's a race condition in fork+pid2path) 2014-11-03 11:47:51 +01:00
pancake
3c6ae9ed33 Add r_io->referer 2014-11-03 10:47:02 +01:00
pancake
63a0a6770b Fix r2 -d oo updated offset issue 2014-10-20 22:48:50 +02:00
pancake
1c583a4b39 Added 'oob', 'oon' and 'oo?'. Close RBinObjects with RCoreFiles 2014-10-17 00:36:00 +02:00
pancake
da866539ee Fix 'oo' bug (sync rcorefile and riofile lists), Better 'ob' 2014-10-17 00:04:52 +02:00
condret
606704e3f3 some cleanup in r_core_file_free 2014-10-08 16:14:31 +02:00
condret
65d8b20d05 RCoreFile-reduction: kill RCoreFile->rwx 2014-10-08 13:29:47 +02:00
condret
4c07f86bd5 rename mode to flags and add a few check to prevent NULL-ptr-deref 2014-10-08 00:47:13 +02:00
pancake
d8ca00b294 Fix #804 again - regression introduced by deprecating rcorefile 2014-10-07 17:54:03 +02:00
pancake
e3df2bf29e Show if two maps overlap 2014-10-07 03:07:45 +02:00
pancake
2642b03076 Handle r2 -C ../V to start in visual. Fix file.loadmethod=append 2014-10-07 01:58:42 +02:00
condret
4f70c1bf89 kill RCoreFile->size 2014-09-30 15:31:19 +02:00
Maijin
6661225118 Fix Warning incompatible pointer type
passing argument 2 of ‘r_file_slurp’ from incompatible pointer type [enabled by default]
2014-09-30 12:23:39 +02:00
Jonathan Neuschäfer
9ee2584c6a Fix r_file_slurp usage: use ut64 for buffer size 2014-09-28 03:30:30 +02:00
pancake
e176dd164e Fix r2 -c '!ls' -- (shell escape when no file is opened) 2014-09-26 17:58:17 +02:00
condret
ab4a5c9632 deprecate RCoreFile->uri 2014-09-25 18:18:07 +02:00
condret
452669d941 more cleanup in r_core_block_read 2014-09-17 23:32:59 +02:00
pancake
de61bfda4c Fix #1365 - esil negative value in mov 2014-09-16 21:58:02 +02:00
condret
ec3df92770 kill r_core_file_t->filename 2014-09-09 17:02:25 +02:00
condret
455f8fdfc8 2 performance improvements // don't use r_io_use_fd if you can use r_io_use_desc 2014-09-09 16:06:28 +02:00
pancake
777b26fd6e Add r2 -z and r2 -zz: Fix the bin.strings and bin.rawstr logic. 2014-09-08 23:29:50 +02:00
condret
7ce6922491 rename r_io_open -> r_io_open_nomap and add a new r_io_open that creates a map at 0x0 2014-09-06 23:08:16 +02:00
condret
a2491bbc08 fix a bug that does evil things with io->maps 2014-09-05 23:10:09 +02:00
pancake
d809200fa2 Fix more memleaks 2014-08-29 16:42:00 +02:00
pancake
c6bc6f099d Rename l to T, add cfg.user and 'TT' chat prompt
* Add cfg.user variable
* Implement TT chat prompt
* Invoked from 'VT'
* Rename 'l' to 'T' command (log -> textlog)
* Add r_sys_whoami () -> set default username
* Add $$ trap instruction in ESIL
* Implement POP and STACK esil commands
2014-08-28 03:11:13 +02:00
pancake
d2248ba7bf cleanup 2014-08-27 23:51:17 +02:00
pancake
56f9ac577e Fix ASLR for linux debugger. Load rbin info from different base address 2014-08-25 04:22:22 +02:00
pancake
00245e5e96 rabin2 -V -> -p (-p is more meaningful to show physical addresses) 2014-08-24 10:41:32 +02:00
pancake
eeb50850c9 Fix #1205 - rabin2 -v show version. rabin2 -V disable VA 2014-08-23 02:41:50 +02:00
pancake
0fbe8700d6 Automatically run 'sr pc' after 'oo' 2014-08-19 10:15:46 +02:00
pancake
be4b0d1258 Fix 'oo' on 'r2 -d' in OSX 2014-08-18 18:06:27 +02:00
jvoisin
6e662abd91 Fix some minor gcc warnings 2014-07-22 00:24:37 +02:00
jvoisin
bc30cb72c6 Fix some coverity issues 2014-07-07 16:09:03 +02:00
pancake
1a3ffef8b4 Fix static build 2014-06-25 04:11:43 +02:00
jvoisin
d3822e2382 Colorizs ., !, = 2014-06-20 13:25:17 +02:00
pancake
b788deac00 Fix latest coverity issues
CID 1221463
CID 1221462
CID 1221461
2014-06-07 11:23:14 +02:00
pancake
b564af7d09 Fix crash in core/file.c when loading empty files 2014-06-05 23:07:02 +02:00
pancake
2e789678de Implement RDebugInfo (only for linux atm) 2014-06-04 04:12:11 +02:00
pancake
d65700dedd Fixes to make RBin/RIO more consistent for bindings 2014-05-28 18:58:53 +02:00
pancake
5025aca6f6 Restore back the original RIODesc after RBin loading (fixes -d) 2014-05-28 15:03:31 +02:00
pancake
5e33a8a282 Initial huge refactoring of r_io still work in progress 2014-05-28 04:34:12 +02:00
pancake
576c9d6221 Fix ASLR (rabin2, r2 -B working again), sort i? output 2014-05-26 03:06:29 +02:00
jvoisin
63d2b5c951 Fix CID 1195077 2014-05-24 02:05:46 +02:00
jvoisin
f4c3661cd6 Fix CID 1205213 2014-05-22 13:52:16 +02:00
pancake
29ee197638 Optimize RMeta.add() and bump sdb for updated optimizations 2014-05-22 02:15:26 +02:00
pancake
905821f255 Fix null deref in 'r2 -k -' (thanks maijin) 2014-05-21 23:03:09 +02:00
pancake
45c41d4582 Handle 'mov' color in RCons.pal 2014-05-16 04:07:03 +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
pancake
887f15b03d Add r_bp_del_all (db-*) and fix some more bugs 2014-05-08 17:38:29 +02:00
deeso
0c3add7ee0 Moving the bin binding to the appropriate locations 2014-05-07 14:04:14 -05:00
Adam Pridgen
e9cabecc45 Fix CIDs: 1211131, 1211134, 1211136, 1211133, 1211143 2014-05-04 22:09:20 -05:00
Adam Pridgen
bd297f6788 reworked how bins environmnent variables are set (e.g. io.va, arch, bits, etc.) and fixed some more mach0 regressions 2014-05-04 17:15:55 -05:00
deeso
3d8dc61a55 Fixed some of the mach0 regressions 2014-05-03 09:58:53 -05:00
Anton Kochkov
2d12e2996d Fix CID 1134852 2014-05-03 04:29:10 +04: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
deeso
ce7f33480e fixing warnings (not the unused ones) in various files 2014-04-28 12:58:35 -05:00
Adam Pridgen
c3d6664756 Adding multi-bin support for files that contain multiple objects and lots of other fixes in libr/bin 2014-04-28 12:11:14 -05:00
deeso
5f6f8064d9 Fixed some issues in bin/dwarf.c and Fixed 1205194, 1205193, 1205192, 1205202, 1205203, 1205204, 1205205, 1205209, 1205208, 1205207, 1205206 2014-04-25 15:14:57 -05:00
deeso
3e412605e3 Fixed: 1205190, 1205200, 1205191, 1205199, 1205198, 1205197, 1205196, 1205195 2014-04-25 14:21:20 -05: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
deeso
dd07844436 Fixing some Null Dereference Bugs courtesy of coverity 2014-04-22 18:39:17 -05:00
deeso
be5c6b6f0d Fixed the parsing and extraction of RBinFiles in macho or other multi-files. There appears to be a problem with bin->printf 2014-04-19 16:38:37 -05:00
Adam Pridgen
3048a34783 Trying to fix mem-leaks, and allow updating of bin object infos 2014-04-03 14:04:07 -05:00
condret
18641dfb24 fix #730 2014-03-25 17:11:11 +01:00
pancake
76fa3878f7 Fix #627 - cannot reopen file (hack)
- file.loadmethod needs to be fixed (overwrite method doesnt works)
2014-02-21 11:00:46 +01:00
pancake
90264229c9 Add Vo, fixes in $sys in RAsm, new io.self plugin, initial work on preloaded r2 2014-02-10 03:31:12 +01:00
Adam Pridgen
1c4756898e Updated the r_core_bin_info function and changed some "offset" arguments to baseaddr 2014-02-03 07:52:30 -06:00
Adam Pridgen
38f3225c4f Really fixed entrypoint issue, there was a baddr artifact that needed to be removed 2014-02-03 00:09:52 -06:00
Adam Pridgen
dc06501f4a clean up sloppy spacing 2014-02-02 23:55:03 -06:00
Adam Pridgen
d01e6ac04c Fixed the entrypoint issue, need to address XXX in r_core_bin_info 2014-02-02 23:50:06 -06:00
pancake
1f1367382b Add 'aos' to sdb-ize the esil, file.suppress_warnings renamed to file.nowarn 2014-01-31 02:02:51 +01:00
Adam Pridgen
a79ea9dd34 Fixed coverity issues: 1164785, 1164787, 1164788, 1164790-1164794 2014-01-27 08:34:26 -06:00
Adam Pridgen
d74e10e13b Fixed the many load so that when switching priority, offset is updated to the current bin. TODO: save offset when changing priority 2014-01-26 01:29:17 -06:00
Adam Pridgen
e6fe3354d9 Fixing coverity issues for io_zip, hanging caused by infinite loop in disasm.c,
and io map collisions (which adds file.loadalign, file.loadmethod (append or fail),
and file.suppresswarnings.
2014-01-25 23:48:22 -06:00
Adam Pridgen
70e832b35e Adding the option to open more than one file via a plugin. Now all the files in a zip can be loaded using zipall:// uri. 2014-01-23 21:51:39 -06:00
Adam Pridgen
51a27ab1cc Coverity Fixes 2014-01-22 16:58:23 -06:00
pancake
48273ec2ed Fix #559 - Fix segfault (workarounds) 2014-01-21 15:40:10 +01:00
pancake
1878a8cbae Fix previously skipped segfault 2014-01-20 03:29:50 +01:00
pancake
9e94d62d2e Skip segfault in r_core_fini (->files) 2014-01-20 03:00:16 +01:00