370 Commits

Author SHA1 Message Date
alvarofe
2e462ec8f0 Bring RIODesc from SIOL and cleanup 2017-08-18 01:31:57 +00:00
SkUaTeR
80e38d0c5d fix for #7907 (#7923) 2017-07-14 16:38:27 +02:00
pancake
5c98293b20 Load bin-format specific scripts from home
* mkdir -p ~/.config/radare2/rc.d/bin-mach064
* echo ?E Hello Mach0 > ~/.config/radare2/rc.d/bin-mach064/hello
2017-06-15 00:36:39 +02:00
pancake
cd33acbd51 Implement !- and !-* commands to clear command history 2017-06-14 17:31:57 +02:00
pancake
d6642b10dd Fix last covs 2017-05-29 21:50:57 +02:00
pancake
d8fff83c2e Aim to fix UAF in #7521 - r2 -d on mac 2017-05-28 23:38:14 +02:00
pancake
765c0f2f72 Fix the r2 -d segfault on mac 2017-05-28 00:40:09 +02:00
h4ng3r
905cb24851 Fix some heap overflows in DEX 2017-05-03 22:04:13 +02:00
pancake
40bc4cb751 Fix ood symbol rebasing and add obr command 2017-03-18 21:40:01 +01:00
Rene Laemmert
a4191fc37c Add on*, file.offset and file.info to be able to save projects for files opened with -n -m (#6928) 2017-03-07 20:08:02 +01:00
alvarofe
3cc8604583 Fix crash on io when freeing core->files 2017-03-02 22:47:59 +01:00
pancake
0ae4a5c3e8 More r2-indent fixes. and reindent a bunch of files 2017-02-20 02:54:16 +01:00
pancake
bfcd6f3147 Fix #6789 - rasm2 obey R2_ARCH and R2_BITS env vars from r2 2017-02-15 03:37:13 +01:00
pancake
8ecf4238fd Fix #6676 - rbin warn after re-o 2017-02-03 20:47:09 +01:00
pancake
f5e1294969 Fix rbin warning when ood after o 2017-02-04 17:35:09 +01:00
leberus
82f282c629 Add: dbg.libs/unlibs for linux (#6567) 2017-01-24 20:22:36 +01:00
leberus
f4b8fbbc77 Fix: remove linux specific and add braces 2017-01-16 12:22:24 +01:00
pancake
eb2338ec61 Fix null deref in r_core_hash_load 2017-01-14 21:45:13 +01:00
nevun
d26a4cfd62 Make debugging work a bit better on OpenBSD: nudge get_base_from_maps() so it does not return 0 on OpenBSD just because the memory mapping does not contain the file name. (#6455)
Copied the fallback code from cmd_debug.c:r_debug_get_baddr().

getBaddrFromDebugger() from radare2.c also does the right thing. r_debug_get_baddr() probably should be exposed through the api so everyone can use one, maybe correct, version.
2017-01-10 00:55:38 +01:00
pancake
8bf80c35d4 Fix null derefs in i* when no binobj is loaded 2017-01-04 22:01:53 +01:00
SkUaTeR
427429204e Fix win64 debugger (#6371)
* fixed win64 debugger with x32 app

* fixed win64 debugger with x32 app

* Update cmd_open.c

* Update windows.c
2016-12-28 12:11:32 +01:00
pancake
50d73d1547 Fix a lot of memleaks, null derefs and undef behaviour thanks to clang-analyzer 2016-12-19 16:44:51 +01:00
Álvaro Felipe Melchor
15022e85e1 clean anal hints when using xtr plugin 2016-12-04 20:41:56 +01:00
Álvaro Felipe Melchor
aeb5d1be4b Added help message when izz after -nn
When opening a binary with -nn internal structures are not initialized being
one of them RBinFile that is need to retrieve the info.

However, when opening an image for example RBinFile exist but we do not have a
corresponding plugin or binary format to say so we are able to get strings.
This will be need a great refactor to handle correctly and furthermore
something I did not like is that baddr is only accesible through RBinObject and
I think it should be within RBin at least.

This was working before cause rabin2 was being called but without -B as
parameter. I have resorted for eprintf message so the user can configure as his
need.
2016-11-07 19:47:56 +01:00
pancake
03028730f0 Fixed a bug of Cf in pd 2016-11-06 02:12:10 +01:00
Álvaro Felipe Melchor
776577d553 get rid of rabin2 when ik* 2016-11-03 16:51:51 +01:00
pancake
d7c13a36b1 Fix #3763 - Add oi command to raise/close fd by index 2016-11-02 03:27:37 +01:00
pancake
be9df39f6f Fixed 40 null derefs reported by coverity 2016-10-20 15:02:25 +02:00
pancake
7b4dc8310d Use RIODesc.detach when serving from RCore 2016-10-09 23:55:34 +02:00
pancake
7403f6229d Honor size=-1 in o 2016-10-09 22:03:02 +02:00
pancake
1e89dddd87 Fixes in oa, asm.bits, avr and io debug issues 2016-09-26 00:46:20 +02:00
Sven Steinbauer
2996538700 Fix #5633 - Change x == NULL to correct syntax 2016-09-19 14:44:47 +02:00
pancake
220a0b46bd Fix #5554 - Update !? help 2016-08-28 13:40:41 +02:00
SkUaTeR
8b17834eb5 Fix command do in windows, fix dr command to get segments registers, … 2016-08-26 23:51:56 +02:00
Chris Rorvick
9b47635f0c remove `next' param from r_core_block_read()
This was originally used to cause a seek to the next block prior to
reading such that successive calls to r_core_block_read() would progress
through memory one block at a time.  This was broken, though, by commit
452669d94113 ("more cleanup in r_core_block_read") when when it used
`next' to directly calculate the offset rather than via a seek.

Only one call site remains that attempts to read the next block instead
of the current, and this probably was not even observable due to the
"hacky fix" added in commit 3bfa61946eca ("Cleaner pvj, fix tinype load,
and honor 'ao N's").

The current of semantics of `next' appear to be broken and there is very
little dependence on it.  If the original behavior should be restored
anywhere, it would be much better to add a new function, or just do the
seek explicitly, rather than parameterizing r_core_block_read() on it.
2016-08-15 14:26:58 -05:00
Rakholiya Jenish
339a5b7b18 fix iZ and negative o for large files (#5242)
correct the add section check

keep commented part to it's original code

int to ut64

minor fix and limit buffer size in case file size cannot be allocted

remove section check

show size in readable format

minor changes
2016-07-05 12:46:28 +02:00
pancake
56af25e5b5 Update r_core_sysenv_end 2016-06-14 01:33:46 +02:00
pancake
24aec5be8c Fix all latest COVs 2016-06-07 10:03:04 +02:00
Álvaro Felipe Melchor
649748a8f2 Fix #5074 2016-06-06 22:40:34 +02:00
pancake
608b79d2b4 Finally fix the build on osx-ppc 2016-06-06 17:30:07 +02:00
pancake
132b173b87 Refactoring $B and decompose $F into $FB $FE $FS and $FI + code cleanup 2016-05-25 23:34:06 +02:00
Sven Steinbauer
547f8bbc5c Infer fixes Round 2 (#4993) 2016-05-24 22:22:15 +02:00
Ahmed Mohamed Abd El-MAwgood
f7c47bf575 fixing all Use-after-free errors reported by llvm (#4924) 2016-05-18 11:41:12 +02:00
pancake
735ec47da4 Fix #4816 - load libraries if bin.libs=true (wip) 2016-05-09 17:24:12 +02:00
pancake
91a052f971 Fix #4817 - Deprecate file.analyze 2016-05-09 11:33:17 +02:00
pancake
280abd4f77 ARM can't hwstep by default 2016-04-22 10:15:22 +02:00
pancake
2d99c17980 Fixes for Vk and add more anal.archinfo (ppc, mips, sh) 2016-04-13 23:57:24 +02:00
pancake
c28dce2359 Autodefine anal.gp if loc._gp is set 2016-04-13 23:18:36 +02:00
pancake
e8263655be Fix more memleaks 2016-04-04 00:17:57 +02:00
pancake
895a966884 Do not diff function strings, increase memlimit 2016-03-22 01:31:10 +01:00