Commit Graph

138 Commits

Author SHA1 Message Date
Álvaro Felipe Melchor
84e871e456 Fix #5476 - fix UAF executing twice izz~:0 2016-08-28 17:36:18 +02:00
pancake
0b86c2ac55 Fix memleaks and r2pipe annoyance with izz 2016-08-23 01:39:16 +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
452669d941 ("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 3bfa61946e ("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
pancake
5174f8f624 Fix #5436 - uninitialized var in izz 2016-08-01 14:19:51 +02:00
Dario B
d23f3fc97d #5179 and TODO about avoid forks (#5401)
* removed some forks

* a bit of refactoring

* done test and fix bug

* fix code style
2016-07-30 14:29:49 +02:00
Paul
6b9bc8560e iS[j|*|q] [hash] fix 2016-07-25 14:48:49 +02:00
Maijin
9026c6b8b3 Fix #5340 ij command with debugging open 2016-07-18 00:39:03 +02: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
87ccfd34f5 Add fi[jn*] command to list flags in range 2016-07-03 22:00:43 +02:00
pancake
fe06f16b44 Add core.iorw in i command (merge fdmode + io.cache 2016-07-03 21:04:50 +02:00
Jeffrey Crowell
c145740030 replace r_cons_printf("%s\n",p) r_cons_println(p)
move from 10% of code in vfprintf to just 6% \o/ for simple tests of r2
-c "aaa" -q /bin/ls
2016-06-26 00:52:03 -04:00
pancake
d9636a9738 Fix some more clang analyzer warnings and cleanup 2016-05-24 14:54:34 +02:00
Álvaro Felipe Melchor
1f4e005991 added izqq/izzqq in r2 to list only strings 2016-05-23 22:54:00 +02:00
Álvaro Felipe Melchor
b7cc6c04d7 LDID parse signature in mach0 binaries
* added iC command to show signature info

in the case of mach it shows entitlements

* added rabin2 -OC to get signature info from binary

* change swap to r_read_bleX new API

* change eprintf to r_cons_printf

* add const char in plg->signature
2016-05-09 23:42:28 +02:00
Jeffrey Crowell
9518841434 refactor includes (#4757) 2016-05-03 04:52:41 +02:00
pancake
6261fe32fb bugfixes + testsuite for the Internal Swift demangler 2016-05-03 04:31:36 +02:00
Jeffrey Crowell
fed7cbdc67 fix command injection vuln in izz
(solution to blazectf task ;-) )
2016-04-24 16:31:51 -04:00
Adr1
ab5792d132 RBin: improving versioninfo
Store ELF versioninfo in Sdb.
Display VS_FIXEDFILEINFO for PE.
2016-03-16 18:10:49 +01:00
Adr1
611c3d1752 RBin: Display File Version info 2016-03-04 01:15:56 +01:00
pancake
d5decff694 Fix #4134 - Honor min,maxlen in izz 2016-02-22 22:51:37 +01:00
pancake
384cfb1042 Fix last coverities 2016-02-16 02:08:09 +01:00
pancake
f5181c4d90 Initial rework for dyldcache 2016-02-04 15:44:49 +01:00
pancake
a362dcf6d9 Update sdb and fix more null derefs caused by mem exhaustion 2016-01-11 00:24:18 +01:00
pancake
dd8b7b1e04 Handle PIC field in ART file format 2015-11-26 13:18:11 +01:00
Álvaro Felipe Melchor
8d9af55342 Fix #3628 2015-11-09 15:30:13 +01:00
pancake
1b88200e31 Add support for 'interpreter' in RBin, ELF and MACH0 2015-10-22 02:13:26 +02:00
jvoisin
c4a930aeff Implement iLj 2015-10-20 14:30:52 +02:00
Álvaro Felipe Melchor
6fa7d44482 Fix #1289 2015-10-16 11:24:20 +02:00
Álvaro Felipe Melchor
b2df63cba2 Fix #3386 2015-10-14 16:20:03 +02:00
Riccardo Schirone
191c454a61 core/bin: big refactoring and code cleanup 2015-09-27 17:46:41 +02:00
pancake
34811ad84e Fix #2416 - Add iE and rabin2 -E to list exports 2015-09-23 12:23:03 +02:00
pancake
5a05c070aa Add iL command to list all rbin plugins loaded 2015-09-16 16:32:33 +02:00
pancake
b515a34676 More stdboolification 2015-09-14 12:35:38 +02:00
Riccardo Schirone
575d3e9f0a core/bin: remove loadaddr parameter and get it from the RBinObject 2015-08-29 00:35:09 +02:00
Riccardo Schirone
6f0962555d baddr: still some fixing, in particular when reloading files 2015-08-29 00:35:09 +02:00
pancake
0868703c9f Enhancements for ic 2015-08-19 02:23:42 +02:00
Jeffrey Crowell
14594ff1cc fix segfault in iac
close #2894
2015-07-07 13:10:53 -04:00
pancake
b0c9ac637e Add icl command to list all method addresses of a specific class 2015-07-06 11:46:21 +02:00
pancake
d054008b17 Implement class methods for DEX and make icj 2015-07-06 02:38:54 +02:00
pancake
a67e74c6cd rabin2 -c <-> -C 2015-07-06 01:09:00 +02:00
pancake
1f989e423a Fix #2862 - Handle no file size with in 'i' and 'r' 2015-06-30 11:34:38 +02:00
pancake
4a33d2afac Fix bin_is_executable() helper 2015-06-17 11:14:32 +02:00
Álvaro Felipe Melchor
36917ff60b Fix #2754 2015-06-14 21:46:16 +02:00
Judge Dredd (key 6E23685A)
b87c68e7e7 fix #2708 2015-06-04 14:49:17 +02:00
pancake
abd8db639c Honor obsz in ij output 2015-06-03 10:26:11 +02:00
pancake
e19810e875 Fix #2642 - rabin2 -Aj and r2 -ciAj - JSON output for sub-bins 2015-05-29 01:38:31 +02:00
pancake
499e008f52 Add iM command as in rabin2 -M 2015-05-06 02:38:59 +02:00
pancake
5187d37c13 Fix latest covs 2015-04-15 12:13:50 +02:00
Álvaro Felipe Melchor
788a7f998d write the same info in normal as in json 2015-04-15 01:47:47 +02:00
Álvaro Felipe Melchor
61fb2fdf63 Fix file/uri info 2015-04-14 17:15:46 +02:00