Commit Graph

22893 Commits

Author SHA1 Message Date
Fritz Reese
f4b0ec9623 Fix #15302 [rasm2/armass] Correctly propagate errors from thumb_assemble (#15303) ##asm 2019-10-19 01:48:14 +02:00
Riccardo Schirone
219eefbd5d Simplify r_bin_open_io function (#15307) ##bin
* remove file_sz field from r_bin_file_new_from_buffer and r_bin_file_xtr_load_buffer
* remove all the messy buffer size handling and just rely on r_buf_size
2019-10-19 01:46:22 +02:00
Anton Kochkov
0f430b5871 Fix #15296 - *BSD builds (#15309) ##build 2019-10-19 01:28:01 +02:00
neuracr
5fd8afcad3 Fix #15237 - pvzj output. (#15310) 2019-10-19 01:22:46 +02:00
Paul I
dac5229965 Avoid reloading of cc sdb - huge speedup (#15306) ##anal 2019-10-19 01:21:02 +02:00
yossizap
d9fa409563 Added support to thread switching in linux and fix r_debug_select ##debug 2019-10-17 19:21:58 +02:00
Khairul Azhar Kasmiran
82122971d6 Rename set_meta_min_if_needed() to set_meta_if_needed() (#15299) 2019-10-17 18:16:01 +02:00
Riccardo Schirone
b7aa0c5792 buf_ref: make sure the reference buffer does not exceed the parent size (#15288) 2019-10-17 02:39:31 +02:00
the-remmer
2d143a8316 Add support for hex escaped litterals in regular expressions (#15291) ##search
Example: /e /(\x77\x30\x30\x74){2}/ searches for "w00tw00t"
2019-10-17 02:38:21 +02:00
Riccardo Schirone
3055bbfd09 Remove unused offset argument in RBinOptions 2019-10-17 02:31:16 +02:00
dok
830889bb88 Use utf8 block character in progressbar 2019-10-17 02:30:44 +02:00
dok
a585dbc2d9 Fix progressbar rounding error
An extra char was added when the percentage was 100, caused by
what I believe is a rounding error. An int is good enough here.

By removing the double it fixes the min and max macros beeing used
with a mix between integer and double, and the double beeing used
in printf as a decimal value.
2019-10-17 02:30:44 +02:00
David CARLIER
cbc5c77813 Fix possible command overflow #r2agent (#15293)
Detected with asan on macOS.
2019-10-17 02:30:02 +02:00
Francesco Tamagni
9466e1cd71 Implement ESIL for arm64 UBFX ##anal (#15290) 2019-10-17 02:29:23 +02:00
yossizap
f6bda32cb9 Fixed ptrace 'Operation not permitted' errors (#15287) ##debug 2019-10-16 13:08:38 +02:00
pancake
3092db1e3e Handle R_ANAL_OP_MASK_DISASM in RISCV.GNU 2019-10-16 12:24:25 +02:00
GustavoLCR
73d555dbed Also use LANG env var to check for UTF-8 output support (#15257) ##cons 2019-10-16 12:12:26 +02:00
GustavoLCR
50174972fd Move UTF-8 setting logic to scr.utf8 config callback on Windows (#15273) ##cons 2019-10-16 12:11:52 +02:00
pancake
3be447f2c5 Fix debugger build for native GNU/Linux on RISC-V ##debug 2019-10-16 09:29:37 +00:00
Joseph Griego
9cffc195f4 Support > 4GB ELF files ##bin 2019-10-16 01:57:41 +02:00
Florian Märkl
da18e5aadc Make RAnalFunction.cc come from RAnal String Pool ##anal (#15281) 2019-10-15 15:53:05 +02:00
dav1901
56d3ca7743 Fix a use-after-free bug (#15282) 2019-10-15 15:52:20 +02:00
dav1901
a88d3303e1 Minor code fixes (#15276) 2019-10-15 02:54:35 +02:00
yossizap
d8e08bc7ea Fix incomplete drr/drrj formatting when r_core_anal_hasrefs fails (#15277) ##debug 2019-10-15 02:54:20 +02:00
dav1901
9de5481098 Fix few memory leaks and null dereferences (#15271) 2019-10-14 12:47:40 +02:00
GustavoLCR
bf15aa7a4e Fix #15267 - Fix jump shortcuts on Windows (#15270)
* Revert " Fix #12921 - Impl. r_cons_arrow_to_hjkl for Windows ##cons"

This reverts commit 7f86ef243c.

This fixes #15267

* Re-Fix #12921 - Impl. r_cons_arrow_to_hjkl for Windows

This time only translate arrows in the function.

This is so that __cons_readchar_w32 does not return inputs that we are
not interested in that caused the #15267 regression.
2019-10-14 12:47:17 +02:00
hmht
48ca0e7ace Add additional [indirect] access syntax for 8051 (#15272) ##asm
8051 natively uses an '@' prefix for indirect access, which is
a bit awkward is r2, so it should also support the bracket syntax:

xrl a, @r0
xrl a, [r0]

Additionally, I refactored the argument tokenization so that it's all done
up-front, making everything easier to work with, saving about 800 LOC.
2019-10-14 12:45:26 +02:00
yossizap
3b8b754cdf Add current thread field to dptj (#15268) ##json 2019-10-13 22:48:36 +02:00
radare
30e737356f
Deprecate the use of anal plugins that doesnt handle mask.disasm ##anal (#15262) 2019-10-13 22:47:39 +02:00
Paul I
fedc6f6779 Fix memleaks in libr/util/table.c (#15253) 2019-10-13 22:45:13 +02:00
Khairul Azhar Kasmiran
17cdb75f14 Add jumptable support for main() in bins/elf/analysis/ls-alxchk (#15266) ##anal 2019-10-13 22:38:23 +02:00
condret
77e73c16f7 add 8bit register dereferencing for 2 operand instructions in mcs96 disassembler 2019-10-13 20:28:17 +02:00
Stefan Ilic
76e825ad07 Fix leak in autoname_imp_trampoline (#15263) 2019-10-13 12:53:56 +02:00
Khairul Azhar Kasmiran
dc59b5e7dc Add jumptable support for main() in bins/elf/ls.odd (#15233) ##anal 2019-10-13 02:17:56 +02:00
pancake
f6265e131f Run .dr* in visual prompt in cfg.debug is set ##visual 2019-10-12 23:56:16 +02:00
Cyrill Leutwiler
2298b49f73 add afoj and afdj (#15254) ##anal 2019-10-12 23:17:32 +02:00
GustavoLCR
b83d03abca Fix formatting for r_bin_list_archs (#15256)
* obj->obj_size is 64 bits
* offset is unsigned
2019-10-12 23:16:39 +02:00
yossizap
a9478c0bb0 Added "dptj" and "dptj " (#15259) ##debug 2019-10-12 23:14:24 +02:00
Khairul Kasmiran
b5506916ed Fix #define alignment 2019-10-12 19:38:57 +08:00
condret
152ab3e94d fix mcs96 instruction length 2019-10-12 11:44:36 +02:00
condret
73d6b8e930 anal_x86_cs fix esil expr for neg instruction (#15252) ##emu 2019-10-12 00:43:42 +02:00
GustavoLCR
9ed199d64e
Fix OOB read in 8051 assembler 2019-10-11 15:22:52 -03:00
GustavoLCR
42938ada9f
Fix heap-buffer-overflow in 8051 assembler 2019-10-11 14:37:53 -03:00
pancake
a4c145c708 Revert bf regression 2019-10-11 16:22:03 +02:00
radare
681fbb0431
Some small cleanup/deprecations on asm/anal (#15248) 2019-10-11 14:25:44 +02:00
pancake
26981d23b7 Fix #15246 - Honor the 'u' suffix in PPC instructions in ESIL ##emu 2019-10-11 12:58:12 +02:00
pancake
07bfca8cb1 Fix #15238 - pvj4 stuck in a loop 2019-10-11 12:10:33 +02:00
hmht
9db9050454 Fix 8051 dptr read (#15247) 2019-10-11 10:46:28 +02:00
pancake
14c14e7c36 Add support for RTable.query in i ##bin 2019-10-11 05:55:50 +02:00
pancake
58136e0dd8 Remove some globals in rabin2 and fix iz with table 2019-10-11 00:21:06 +02:00