Commit Graph

19187 Commits

Author SHA1 Message Date
pancake
d60f94fa58 Add missing r_asm_op_get_buf 2018-08-28 14:12:20 +02:00
morbith-dqtz
3afc8cd8c1 heap tcache flgs fixes (#11282)
* now glibc tcache parsing if checked by a config flag, no more preprocessor

* * calls r_resolve_symbol to recompute malloc_state offset
* fix cpu autodetect for tcache flags
2018-08-28 13:00:38 +02:00
Florian Märkl
caf18865df Use waitpid with WNOHANG in lang_pipe_run() (#11278) 2018-08-28 10:35:50 +02:00
Jacob Rosenthal
eecaf1493f Finish converting arm s110 syscalls (#11280) 2018-08-28 10:35:30 +02:00
Neven Sajko
634f7e54d0 remove unused define (#11277) 2018-08-27 21:40:39 +02:00
pancake
01e164cde2 Fix build on Linux 2018-08-27 17:19:01 +02:00
David CARLIER
1dd1e45e46 Fix few compilation warnings. (#11276) 2018-08-27 16:38:37 +02:00
Khairul Azhar Kasmiran
4042f87239 Fix iM paddr when it's from the main symbol (#11253) 2018-08-27 16:09:32 +02:00
Riccardo Schirone
cd7930dbe5
util: try to guess function name only when it contains "dll_" (#11236)
* util: interpret fcn name only if it has "dll_" prefix

Before this patch, a function automatically renamed to "sub.strlen_123"
was identified as a call to strlen, thus the strlen signature was added
as a comment next to a call to that function. This patch prevents that
behaviour.

* ctype: try to identify names with _ at the beginning
2018-08-27 14:13:38 +02:00
Fangrui Song
e2df259a8e Fix some warnings (#11271) 2018-08-27 09:16:29 +02:00
Fangrui Song
95c4f1ffb9 Remove r_io_buffer* (#11239)
There are already r_io_cache* (r_io_t::cachemode) and r_io_desc_cache* (r_io_t::__cache). There is no place for this extra cache layer.
2018-08-27 00:51:44 +02:00
pancake
ff08c059da Kill the isThumb checks (s110-arm-16 half converted) 2018-08-26 23:08:44 +02:00
Jacob Rosenthal
3afabed74d arm thumb syscalls use aop.val instead of a register 2018-08-26 23:08:44 +02:00
morbith-dqtz
e09306ab99 Make glibc tcache parsing if checked by a config flag, no more preprocessor (#11266) 2018-08-26 22:50:30 +02:00
Fangrui Song
97e6808335 Simplify af- & r_anal_fcn_del (#11244)
r_anal_fcn_del should not treat UT64_MAX differently.
2018-08-26 19:15:10 +02:00
Iru Cai (vimacs)
26e58cff07 Add ESIL for bt, btc, btr, bts on x86 (#11264) 2018-08-26 18:28:35 +02:00
Fangrui Song
f0e7f535c0 Fix memleak in r_core_get_boundaries_prot call sites (#11265) 2018-08-26 18:25:34 +02:00
Fangrui Song
9a42bbd388 esil.c: fix memleak (#11256) 2018-08-26 18:25:13 +02:00
Fangrui Song
a8461613d1 Make wc- invalidate all (fully or partially) overlapping cache (#11241)
Fix the handling of [to] in wc- [from] [to]
2018-08-26 17:38:11 +02:00
sivaramaaa
aa435d9a57 Fix #11211, Change afvn syntax to [new_name] [old_name] (#11233) 2018-08-26 17:35:04 +02:00
Fangrui Song
61cc81e075 Fix "afcf" without arguments 2018-08-26 16:53:44 +02:00
Fangrui Song
ff0bc4aa3e Add $ command names beside case labels and update ?$? 2018-08-26 16:09:01 +02:00
Fangrui Song
bf4d95d41e Fix minor -fsanitize=pointer-overflow when addr=0 && vaddr=UT64_MAX (#11252)
ubsan reports this when calling

    r_core_esil_step (core, UT64_MAX, NULL, NULL);

in anal_tp.c:r_core_anal_type_match. This does not matter in reality, but silent it anyway.
2018-08-26 16:05:06 +02:00
Neven Sajko
810c575f6f msp430 analysis: support emulated branch instr (#11259)
This fixes the bug with moves to PC register not being recognized as
jumps.
2018-08-26 16:03:02 +02:00
Florian Märkl
a214324311 Add __pycache__ to gitignore (#11260) 2018-08-26 16:00:52 +02:00
Fangrui Song
019491bcbc Fix RStrBuf memleak in afta (#11251) 2018-08-26 14:16:14 +02:00
Fangrui Song
05fd10fd53 Fix memleak in elf.c symbols_by_ord_size (#11255) 2018-08-26 14:15:36 +02:00
Fangrui Song
f54be0a086 Fix memleak in aat (#11257) 2018-08-26 14:10:04 +02:00
Paul I
0ba26fb3d6 Add R2_GLOBAL_RC (#11258) 2018-08-26 14:09:32 +02:00
Fangrui Song
764a3ccbcb Fix fatmacho tests
The map [0, r_io_desc_size) (if exists) should have the lowest priority (be inserted first) so we move it here from the bottom.
2018-08-26 02:02:02 +02:00
Fangrui Song
d3442c3897 Fix binheap comparator & omp
This fixes the 3 XX tests in 9280cabb15
2018-08-26 02:02:02 +02:00
Vanellope
286387ff57 Fixed the resizing issue of panels when the canvas is resized. (#11242)
* Fixed the resizing issue of panels when the canvas is resized.

* fixed meaningless code
2018-08-26 01:54:22 +02:00
Vanellope
7fde5b1582 Fixed some coverity issue (#11243) 2018-08-26 01:54:08 +02:00
pancake
6b31a30ce6 Implement support to encode 'dex [16bitreg]' in x86.nz 2018-08-25 13:58:40 +02:00
Fangrui Song
ec18a7aa65 io: remove preprocessor skipped ranges (#11231) 2018-08-25 11:11:49 +02:00
Lowly Worm
a2a7b911de add afbc for exposing a "colorize" api to bbs; addresses #8588 (#11224)
* add afbH for exposing a "highlight" api to bbs

* fix comments from pancake/xvilka

* fix indent

* fixup help text for afbh

* rename afbh->afbc

* fixup offset of color
2018-08-25 11:11:12 +02:00
Florian Märkl
56c07e1a96 Fix a leak in VTable search 2018-08-25 11:10:53 +02:00
Fangrui Song
21b54017d8 io: remove unnecessary r_io_map_cleanup 2018-08-25 11:10:40 +02:00
kij
10265a0507 Remove 2 bashisms, unsure about the last. (#11189) 2018-08-24 15:57:18 +02:00
Fangrui Song
703ae306cc Extract bin_write_elf.c common parts to bin_write_elf.inc 2018-08-24 15:57:05 +02:00
Fangrui Song
e7de8b082f Extract bin_elf.c common parts to bin_elf.inc and #include bin_elf.inc instead of bin_elf.c 2018-08-24 15:57:05 +02:00
Jacob Rosenthal
a0afac029e Fix #11223 -aeim.fd use sdb instead of flagspace as database (#11225) 2018-08-24 15:56:16 +02:00
Rene Laemmert
d28fa768f3 Removed access to r_io_section in core (#11222) 2018-08-24 15:55:04 +02:00
Anton Kochkov
483495787f
Add Core Infrastructure Best Practices badge
See https://www.coreinfrastructure.org/ and https://bestpractices.coreinfrastructure.org/en for more information.
2018-08-24 10:09:46 +08:00
radare
44627091d3
Fix memleaks in radare2.c (#11221) 2018-08-24 00:20:08 +02:00
Paul I
b5044de59b Fix agw command (#11217) 2018-08-23 18:35:24 +02:00
Jacob Rosenthal
f82b289822 arm syscalls: nordic s110 softdevice support 2018-08-23 16:41:34 +02:00
pancake
cba35157c6 Fix leak in RAnal.ws and make Vbe work 2018-08-23 15:07:21 +02:00
pancake
7b046e5f4a Fix crash reported by Maijin
> r2 -qc "2aa ; axfj @ 0x100001321" /bin/ls
2018-08-23 15:05:38 +02:00
pancake
095f28dfdf Fix #11215 - Ve is already in Vbe 2018-08-23 14:46:54 +02:00