Commit Graph

15797 Commits

Author SHA1 Message Date
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
Fangrui Song
277ea0dcb4 Fix memory leak in rasm2 by moving ownership of syscall from RAnal to RAsm
- Move null chk into the r_syscall_free
2017-08-29 12:42:49 +02:00
Giovanni
e4342297c4 Various fixes for bugs from coverity + bonus (#8372)
* 1356014 Resource leak
* 1356012 Resource leak
* 1356010 Resource leak
* 1355967 Resource leak
* 1355960 Resource leak
* 1352987 Resource leak
* 1352986 Unintentional integer overflow
* 1352985 Unintentional integer overflow
* fixed coverity missed null deref
* 1347178 Resource leak
* 1347178 Resource leak
* 1346910, 1363297 Resource leak
2017-08-29 12:39:49 +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
4933b39cf8 Use rbin's section instead of io's counterpart 2017-08-29 00:39:42 +02:00
alvarofe
bbca2d3dff Trap before in anal_java to avoid continue execution 2017-08-29 00:12:14 +02:00
alvarofe
9ff143e2fd Make sure just taking into account has_va for real bin plugins 2017-08-28 23:41:46 +02:00
alvarofe
b099901d96 Fix flirt 2017-08-28 23:27:20 +02:00
alvarofe
702b63955f Fix partially cmd_zignature
what fails is flirt now
2017-08-28 23:24:37 +02:00
alvarofe
c652ac8ae6 Fix regression 2017-08-28 22:48:28 +02:00
alvarofe
9092183a73 Remove other damn stray :( 2017-08-28 22:18:22 +02:00
alvarofe
2a186fdcf4 Fix a little bit java by mapping desc 2017-08-28 22:08:50 +02:00
alvarofe
4cd119b4f5 Get rid of R_IO_MAP 2017-08-28 21:43:29 +02:00
alvarofe
137f1d69e1 All section on IO are mapped 2017-08-28 21:35:32 +02:00
Richard Maciel
971715219b Fix svc esil code for aarch64 (#8371)
analop64_esil lacked case ARM64_INS_SVC. This patch adds it and the
code to correctly print the esil representation for svc instruction.

This fixes issue #8370.
2017-08-28 21:24:01 +02:00
alvarofe
233574cf8e Set io.va to false if binobj says so 2017-08-28 21:22:46 +02:00
pancake
731ff16101 Fix null deref on old UNIXes passing NULL in realpath 2017-08-28 21:16:43 +02:00
alvarofe
682f9de5e3 Fix some cmd_search issues 2017-08-28 21:10:12 +02:00
pancake
a48c3b7d1e Disable jemalloc for old mac-ppc builds, so much crappy code 2017-08-28 20:49:33 +02:00
alvarofe
38786dfa58 Bring back old string recognition for DEX
it might be innacurate since the offset given in iz is not the real
string but seems dex derference those offsets.
2017-08-28 18:02:29 +02:00
pancake
d4c258a73e Avoid binloading from UT64_MAX length 2017-08-28 17:42:17 +02:00
alvarofe
17995ab462 Fix r_core_anal_search_xrefs
Wrong check that made the function to return before its execution

r_io_section_valid_offset was checking by -x- but the ref could be
within data section
2017-08-28 17:21:40 +02:00
Giovanni
cee685cda2 1368054 Out-of-bounds read (#8360) 2017-08-28 16:50:26 +02:00
alvarofe
213cc1cdce Fix plt detection in analysis by using bin info 2017-08-28 16:44:51 +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
Srimanta Barua
aa9d2bcf41 fix segfault in case of wrong address (#8359) 2017-08-28 15:27:37 +02:00
xarkes
4e36b5b8aa Fixed meson build (#8358) 2017-08-28 15:09:58 +02:00
xarkes
77615dd4ef Added sdb/msvc to sdb-sync 2017-08-28 14:04:56 +02:00
Rene Laemmert
041e6241b7 remove aei and aeim from aepc command (#8357)
aepc should just change the eip
2017-08-28 12:53:03 +02:00
josediazfer
f11fea1e2b Windows minor fixes, renamed w32 function names, added dbg.bpsysign option (#8356) 2017-08-28 10:19:57 +02:00
Fangrui Song
f91a3bba6f cmd_section.c: add command name beside case labels (#8348) 2017-08-28 10:17:34 +02:00
Fangrui Song
a41ae6779a Fix a few t.anal tests by bring back the old hack r_io_read_at(io, addr, code, 4) (#8352) 2017-08-28 10:14:42 +02:00
Fangrui Song
a38a1ac185 rax2.c: fix out-of-bounds read (#8353) 2017-08-28 10:14:23 +02:00
Fangrui Song
004f15617c cmd_info.c: fix infinite loop 2017-08-28 15:55:40 +08:00
Fangrui Song
6c0b4aa139 Fix a mem leak in cmd_anal.c 2017-08-28 15:53:13 +08: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
7ce2ab1672 Move libr/include/r_rbtree.h to libr/include/r_util/r_rbtree.h (#8345) 2017-08-27 23:56:08 +02:00
alvarofe
d910085be7 Remove stray 2017-08-27 23:14:21 +02:00
alvarofe
3a70ef29f5 Fix dex section mapping 2017-08-27 23:09:40 +02:00
alvarofe
7b80985876 Fix fatmach loading 2017-08-27 22:58:43 +02:00
condret
8721100e2c a few changes to the rbtree. project "shadow sneak" is comming, and it
brings speed improvement for io.va
2017-08-27 22:46:39 +00:00
alvarofe
34d6a89c10 Just consider .rodata for iz 2017-08-27 21:42:54 +02:00
alvarofe
e70524584a Fix strings recognition 2017-08-27 21:30:06 +02:00
condret
3448b11ad5 add name to om 2017-08-27 21:14:10 +00:00
pancake
8fc230250c Tabulate e search.in=?? output 2017-08-27 20:54:15 +02:00
pancake
d5bb2eb933 Fix #8342 - Add aaE command as an alias for aef@@f 2017-08-27 20:52:35 +02:00
condret
e2d096f411 small beautification 2017-08-27 20:22:58 +00:00
pancake
c220c7466f Add more extern "C" to make C++ users happy 2017-08-27 20:21:19 +02:00