24640 Commits

Author SHA1 Message Date
Florian Märkl
d1bcbcf041 Move member initialization of RAnalBaseType to new 2020-09-06 12:36:42 +02:00
pancake
737eacdc13
Implement aof comment to filter esil expression using the DFG API ##esil (#17600) 2020-09-06 12:36:17 +02:00
GustavoLCR
080bf4918c
Fix #17590 - Fix invalid deref in print_types_format (#17592)
Make sure streams are in their proper index for `r_list_get_n` by appending a NULL item when necessary
2020-09-05 19:04:41 +02:00
David CARLIER
15e73666b2
Implements r_sys_aslr for NetBSD ##port (#17588)
ASLR on NetBSD is also settable via sysctl call.
2020-09-04 21:52:16 +02:00
GustavoLCR
52d5b867aa
Fix step over for windbg plugin (#17586) 2020-09-04 15:56:11 -03:00
pancake
052f97dd24
Fix #17506 - r2 http://example.org works again ##io (#17514) 2020-09-04 16:01:03 +02:00
Riccardo Schirone
3f4079c4ca
Add support for TIMEOUT key for cmd tests (#17582) ##r2r 2020-09-04 15:17:17 +02:00
Riccardo Schirone
f8d6db74b5
Split cmd_write function to make it easier transition to argv style (#17370) 2020-09-04 14:36:39 +02:00
GustavoLCR
f46b1749b3
Fix #17581 - Fix append to file on Windows (#17584)
* Fix append to file on Windows

* Test from @ret2libc
2020-09-03 19:13:42 -03:00
Khairul Azhar Kasmiran
a08337f7c7
Fix 'anal && op && len > 0' assertion in asan build (#17579)
* Check for 'i < iend' at end of r_core_anal_esil loop

* Use 'cur_addr >= ctx->end_addr' instead as per @ret2libc
2020-09-03 23:45:47 +08:00
Alexis Ehret
22482f6ac3
Fix 2 last critical LGTM errors (#17451)
Co-authored-by: Riccardo Schirone <ret2libc@users.noreply.github.com>
2020-09-03 16:23:19 +08:00
mscherer
42f90d5df5
Return empty string when slurping a empty file (#17520) 2020-09-03 09:46:17 +02:00
pancake
4d2a83e575
Fix #17492 - EOF when alt+e is pressed on Linux systems ##cons (#17513) 2020-09-03 09:00:25 +02:00
pancake
74c4a36656
Fix 'call start' register confusion warning ##asm (#17573)
Co-authored-by: pancake <pancake@nopcode.org>
2020-09-03 14:45:09 +08:00
junchao-loongson
dd8204ac35
Fix the translation error of MIPS SRA instruction to ESIL ##anal (#17562) 2020-09-03 12:39:54 +08:00
VVS
992404ade9
Fix ESIL movi.n immediate value parsing ##emu (#17557)
Co-authored-by: BlackVS <vvs@coders.in.ua>
2020-09-03 11:33:23 +08:00
Dennis Goodlett
749b2e7095
Add zb score threshold variable ##signatures (#17545) 2020-09-03 10:52:21 +08:00
GustavoLCR
2128795d94
Takeover variables when splitting functions ##anal (#17560) 2020-09-03 07:44:36 +08:00
junchao-loongson
31c525b14a
Fix GP calculation when there are multiple entries ##anal (#17538) 2020-09-03 07:43:24 +08:00
Riccardo Schirone
abfda31e66
Fix a bunch of warnings (#17575) 2020-09-02 19:54:17 +08:00
GustavoLCR
62eb8e62da
Fix afvd using wrong var offsets (#17572) 2020-09-02 13:49:14 +02:00
Riccardo Schirone
be39c822cf Add sdb header path to compile windows ##build 2020-09-02 10:07:02 +02:00
Riccardo Schirone
ffb58abd03 Allow to test windows build with "*windows*" PRs ##build 2020-09-02 10:07:02 +02:00
HoundThe
eca62ba4db
Fix big endian DWARF parsing ##bin (#17503) 2020-09-02 11:01:16 +08:00
HoundThe
2b96c39e90
Don't add already existing parent class ##anal (#17537) 2020-09-02 10:58:15 +08:00
Riccardo Schirone
8344b7c304
Rename new json parser file to json_indent to avoid collisions (#17569) ##build
libr.a is built with all the files required to build against r2, so that
includes also SDB. As SDB already has a file named json.c, the new json
parser in r_util collides with it.
2020-09-02 04:56:54 +02:00
David CARLIER
46874bae17
Fixes r_sys_pid_to_path for Haiku using proper team_id/pid_t ##util (#17571) 2020-09-02 04:55:56 +02:00
Anton Kochkov
43feee7a51
Fixes for old glibc (Debian Etch) (#17564) 2020-09-01 17:05:50 -05:00
Khairul Azhar Kasmiran
c9b6149d7b
Fix test_idstorage mu_assert warnings (#17565) 2020-09-01 17:04:30 -05:00
aemmitt-ns
ec173d40d6
ESIL signedness and other extensions ##esil (#17436)
* fix typo in anal_arm esil (does not affect esil execution)
* add af flag setting and sof op for sub overflow, change borrow
* remove the break that was 'breaking' everything, fix warning
* add new sign extension operator and use it to handle signedness in imul
* work on expressions for idiv, div, imul, mul, remove  and just modify sub/cmp
* add clz and reorder the sign extension arguments to be in line with all other ops
* add support for many arm64 instructions
* add sign extension to all ldr*s instructions
* make numerous changes to fix REV*, SXT*, LSL, LSR, ASR, SDIV, MOVN and others, to be detailed in PR
* add sxt* to shifted_register_append, use it to fix opcall and ldr / str
* remove unnecessary commented code
* add some comments
* add clz and reorder the sign extension arguments to be in line with all other ops
* add sign extension to all ldr*s instructions
* make numerous changes to fix REV*, SXT*, LSL, LSR, ASR, SDIV, MOVN and others, to be detailed in PR
* add sxt* to shifted_register_append, use it to fix opcall and ldr / str
* fix wrong type check in esil_signext
* change borrow flag back to the way it was
* add example comment to esil_signext
* unbreak movk
* format mask in sub, cmp, and movk as hex
* add test for esil signext operator
* use ULL instead of (ut64) cast in shifts
2020-09-02 00:03:24 +02:00
GustavoLCR
443fc06500
Fix wrong calling convetion in io_windbg.c (#17570) 2020-09-01 17:02:08 -05:00
abcSup
d967a68bce Bring back aets+ and aets- commands 2020-09-02 06:00:38 +08:00
abcSup
16c5017898 Fix ESIL tracing to be consistent with debug tracing ##anal 2020-09-02 06:00:38 +08:00
Riccardo Schirone
6aca12465f Do not run tests for build-static ##build
Something does not work well with static (it hasn't at least from the
moment build-static started running full tests). To avoid all kind of
brokeness all around, let's switch back to no-tests. We will enable them
together with the proper fixes for the static build.
2020-09-01 21:54:23 +08:00
condret
e54103eef9
Add tests for r_id_storage (#17548) 2020-09-01 00:49:41 +08:00
HoundThe
f01711583a
Fix compilation warnings ##dwarf (#17544) 2020-09-01 00:48:03 +08:00
Khairul Azhar Kasmiran
580f1e97bd
Propagate parse_ext_opcode() error (#17559) 2020-09-01 00:45:47 +08:00
meowmeowxw
3ffe3f88d2
Add commands to parse mangling pointers glibc heap ##heap (#17534)
* Add dmhtm for tcache mangling pointers

* Add dmhfm for fastbins with mang ptrs

* Add dmhfm <n> for fastbins

* Pointer mangling support to dmh

* Fix spacing for PROTECT_PTR

* Add fastbins checks for dmh

* Clean code for next_pointer

* Use ternary operator when possible

* Add dbg.glibc.demangle option

* Set correct initial_brk for multi-glibc support

* Remove comments and unneeded variables

* Remove 'm' commands, use demangle variable

* Update description of dbg.glibc.demangle

* Test for tcache 2.32 and remove old ones

* Force tests

* Solve insidious bug of filenames

* Fix dmh test and more tcache testing

* Remove unused variables
2020-09-01 00:45:12 +08:00
GustavoLCR
7e28739835
Expose TEB address as a flag on Windows ##debug (#17551)
* Also log the TEB address on thread start
2020-08-31 14:52:03 +08:00
GustavoLCR
55c56206d0
Add libr/include/sdb to .gitignore (#17549) 2020-08-31 12:44:00 +08:00
GustavoLCR
2d91290434
Fix some cc assertions (#17552) 2020-08-31 12:43:21 +08:00
Khairul Azhar Kasmiran
ef0beed4b1
fcn_recurse: Fix dangling pointers if r_anal_op's setting of asm.bits is fully processed (#17547) 2020-08-30 12:15:31 +08:00
HoundThe
0b671bc357
Fix resource leaks in dwarf.c and dwarf_process.c (#17521) 2020-08-28 23:18:49 +08:00
Khairul Kasmiran
730e4b11bc r_reg_get_name_idx: Don't treat empty reg name differently from other invalid reg names 2020-08-28 23:14:09 +08:00
Anton Kochkov
14bc6586fc Fixes for <=glibc-2.2 versions 2020-08-28 23:04:39 +08:00
pancake
e54b8d0092 Rename bin.demanglecmd to cmd.demangle ##config 2020-08-28 20:34:44 +08:00
Riccardo Schirone
850bf37886
Fix #17494 - Pass the whole input string to r_core_cmd_str_pipe ##newshell (#17533)
* Ensure num->value is saved before anything else, otherwise it may change

r_config_get_i calls r_num_math, which sets the num->value, thus losing
the return value of the last command.

* Make r_core_cmd_str_pipe use the new parser when enabled
2020-08-28 13:13:23 +02:00
junchao-loongson
087e5652b3
Improve iA command for MIPS/ELF ##bin (#17516) 2020-08-28 11:11:34 +02:00
Dennis Goodlett
e5a979fc01 Honor zign vars in zbr ##signatures 2020-08-28 13:30:39 +08:00
Dennis Goodlett
43586303d2 Add NULL deref gaurd on empty bbs list 2020-08-28 13:30:39 +08:00