Commit Graph

19170 Commits

Author SHA1 Message Date
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
David CARLIER
7291666948 Fix #11184 attempt. (#11216) 2018-08-23 14:43:35 +02:00
d4em0n
5bf0352dda Fix arm jump table issue #11099 (#11168) 2018-08-23 14:41:58 +02:00
Khairul Azhar Kasmiran
6436cc5934 Fix rabin2 -ee paddr (#11210) 2018-08-23 14:33:26 +02:00
Florian Märkl
2883398942 Fix #11081 - Transient Tasks (#11214)
* Make r_th_free() not kill the thread
* Transient Tasks
* Add transient info to & list output
* Use refcounting for Tasks
2018-08-23 13:49:28 +02:00
Neven Sajko
2f40ff93ce msp430 disassembly: clean up and bug fix (#11202)
General cleanup of opcode selection and invalid opcode handling. Also
fixes the bug of two-operand instructions being decoded as six-bytes
long instead of four bytes long (#11000). Also fixes some out of bounds
reads.

Fixes #11000
2018-08-23 13:05:41 +02:00
Vanellope
7ab842ddbf Autocompletion for afcf (#11209) 2018-08-23 13:04:40 +02:00
pancake
9ff89a4370 Add Visual Graph cursor mode to choose (move vs pan) actions
* c    changes visual graph cursor value
* hjkl moves nodes or pans the canvas
* HJKL means faster scrolling
2018-08-23 12:50:17 +02:00
pancake
79a896286b Fix #11204 - VVr toggles jmp/lea hints like Vr does 2018-08-23 11:56:56 +02:00
pancake
2eca7347d6 Implement default value for op->cycles 2018-08-23 11:40:53 +02:00
pancake
b44de89906 Add op->cycles for ARM32 2018-08-23 11:40:53 +02:00
Sepтем
2aaab8b56c Use RAsm.Op.get_asm() in RCore.Anal.has_refs() 2018-08-23 10:37:23 +02:00
Fangrui Song
3f0b38873d Reland #11181: replace sort_attrs (insertion sort) with a single insertion (#11201) 2018-08-23 01:35:18 +02:00
securisec
e7028d4e84 A better version of white theme (#11200) 2018-08-23 00:36:24 +02:00
exokortex
20e1be2e95 provisional fix for buffer out of range in ds_print_meta_infos (#11203) 2018-08-22 22:52:25 +02:00
exokortex
208361b514 fix index out of bounds (#11197) 2018-08-22 22:50:05 +02:00
exokortex
49b9ffcf9d Remove random change of buffer len that results in index out of bounds in subsequent code (#11198) 2018-08-22 17:15:24 +02:00
pancake
d2a6415556 Revert "Replace sort_attrs (insertion sort) with a single insertion (#11181)"
This reverts commit 884f057646.
2018-08-22 13:50:35 +02:00