24614 Commits

Author SHA1 Message Date
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
junchao-loongson
ac1f0d13b5
Fix #9821 - Add JALR JR shortcat support when the target address can be calculated ##anal (#17498) 2020-08-28 13:30:17 +08:00
Lowly Worm
575dec75f5
Don't try to parse the function if null ##dwarf (#17531)
fixes crashes on gcc 4.9.4 and ld 2.35 with score7 target
2020-08-28 13:05:19 +08:00
Riccardo Schirone
f2e2f7383a
Enable CI checks on PRs against release-* branches as well (#17536) 2020-08-27 11:12:43 -05:00
Florian Märkl
a1ce176371
Fix oob read in getFunctionName() (#17527) 2020-08-27 11:08:47 +02:00
Riccardo Schirone
dfde84d333
Merge all things in one workflow file, reducing duplication of CI code (#17355) 2020-08-27 12:14:58 +08:00
GustavoLCR
bc8f9fd5a8
Fix #9202 - Make main detection for 32bit PE debug build more generic ##bin (#17524) 2020-08-27 12:13:39 +08:00
Aswin C
f656ccc0ea
Added instruction descriptions for RISC-V ##asm (#17526) 2020-08-27 12:12:52 +08:00
Zi Fan
d0e91555c1
Fix missing *_BLOCK_LENGTH macro when compiling with openssl ##hash (#17530) 2020-08-27 12:12:16 +08:00
Khairul Azhar Kasmiran
b2bb25f0c3
parse_dwarf_location: Guard against possible OOB read (#17522) 2020-08-26 21:58:11 +08:00
condret
1cae744fd5
Add tests for idpool (#17515) 2020-08-26 09:21:35 +02:00
pancake
b5b2daf69a
Fix warning not addressed in cef191cde31cbef1da12562cda91e629eabdde93 (#17456) 2020-08-26 11:01:56 +08:00
Zi Fan
0ba897f5c9
Add network support for WinDbg/KD (KDNET) ##debug (#17340)
* Add network support for WinDbg/KD (KDNET) ##debug
* Add iob_net io_backend plugin for shlr/winkd
* Add Windows 10 (May 2019 Update) build 18362 profile
* Add r_hash_do_hmac_sha256 function to r_hash
* Change r_socket_connect to bind source port for UDP connection
2020-08-26 10:24:20 +08:00
Lowly Worm
834d60e431
allow dN to work in cursor mode (#17517) 2020-08-25 10:49:59 -04:00
FXTi
bbc1c4ec7e
Add length check to r_reg_get_name_idx() (#17519)
* Update libr/reg/reg.c

Co-authored-by: Riccardo Schirone <ret2libc@users.noreply.github.com>

* Fix format

Co-authored-by: Riccardo Schirone <ret2libc@users.noreply.github.com>
2020-08-25 08:55:15 -05:00
Khairul Azhar Kasmiran
7066f58d8c
r2r: Set cmd test to NULL on load failure (#17512) 2020-08-25 18:21:38 +08:00
HoundThe
605f48fb20
Add DWARF tests for Ada and Freepascal ##anal (#17504) 2020-08-25 12:05:38 +08:00
GustavoLCR
489538e02b
Add DbgEng based debug backend for Windows ##debug (#17491)
* Rename `windbg` plugin to `winkd` ##debug
* Add DbgEng based debug backend for Windows ##debug
2020-08-24 19:01:10 +08:00
Khairul Azhar Kasmiran
d8d7edf470
Don't use LTO for Debian package builds (#17497) 2020-08-24 18:49:34 +08:00
Khairul Azhar Kasmiran
52668c02d2
r2r: Check whether test has EXPECT or EXPECT_ERR (#17508) 2020-08-24 18:29:37 +08:00
junchao-loongson
b67d1bf7c2
Fix MIPS C-TYPE instruction check (#17499) ##anal 2020-08-21 17:51:21 +02:00
Zi Fan
3c88900134
Implement save and load functions for debug session ##debug (#17430)
* Add `dtst` and `dtsf` commands
* Change `RDebugSession` to store its data in their own sdb namespace
* Add `r_debug_session_serialize()` and `r_debug_session_deserialize()` API
* Add unit tests for `RDebugSession `save and load functions
2020-08-20 12:25:47 +08:00
Khairul Azhar Kasmiran
4bc96b847a
Fix MS-DOS fuzz tests (#17496) 4.5.1 2020-08-20 12:17:13 +08:00
Christopher Hewitt
5f0be49fd1
meson install: Add DESTDIR to sys/create_r2.sh to allow specifying custom install directory (#17490)
* meson install: Add DESTDIR to allow specifying custom install directory
* Drop DESTDIR support on Windows

Co-authored-by: Khairul Azhar Kasmiran <kazarmy@gmail.com>
2020-08-19 19:58:58 +08:00
HoundThe
5845ec39ca
Add function information from DWARF ##anal ##bin (#17434) 2020-08-19 18:21:20 +08:00
pancake
e22b3e9bcc
Fix race condition and remove unnecessary SDB build targets ##build (#17476)
* Simplify sdb build
* This was wrong
* updadte sdb
Co-authored-by: pancake <pancake@nopcode.org>
2020-08-19 10:31:20 +02:00
RHL120
e58b2f6f33
Reload file when opening a project ##projects (#17296) 2020-08-19 11:15:53 +08:00