Commit Graph

23717 Commits

Author SHA1 Message Date
yossizap
778c42cfa7
Fix socket connection issue (#16218) ##socket
PR #16073 exposed that the linux implementation of r_socket_is_connected
returned -1 from recv with errno set to EAGAIN. This broke gdbr and
probably other remote capabilities since r_socket_connect would fail.
I switched the implementation to getsockopt which is more reliable
instaed of playing with non blocking settings.
2020-03-15 11:56:55 +01:00
yossizap
4f853172a8 Add tests for rebasing in debug ##debug 2020-03-14 20:25:13 +01:00
yossizap
c2d0319657 Fix debug rebase regressions ##debug
PR #16131 broke rebase by changing the order in which cfg.debug was set,
causing r_core_file_reopen to treat the debugee as a regular file and
skip the baseaddr calculation.
2020-03-14 20:25:13 +01:00
Anton Kochkov
d0b90edf00 Revert "Try newer V to fix OpenBSD"
This reverts commit 62e7ac88cb.
2020-03-14 14:09:47 +08:00
Anton Kochkov
62e7ac88cb
Try newer V to fix OpenBSD 2020-03-14 13:19:13 +08:00
Rikard Falkeborn
b937482fae
Add missing calls to va_end() (#16213) 2020-03-13 22:29:47 +01:00
Óscar Carrasco
38486d5cfa
Enhance the way imports are processed in r_anal_function_get_signature ##types (#16211) 2020-03-13 22:28:25 +01:00
radare
6c8b0c1732
Implement Shortest Path between BBs and add tests for abt (#16200) ##anal
Co-authored-by: Florian Märkl <info@florianmaerkl.de>
2020-03-13 20:59:17 +01:00
Khairulmizam Samsudin
bb389101da
Make r_reg_get_list() search harder (#16202) ##reg 2020-03-13 12:01:54 +01:00
Khairulmizam Samsudin
8817cc5da0
Clean drx/drt/drp help message (#16203) ##debug 2020-03-13 12:00:13 +01:00
NIRMAL MANOJ C
247b287319
fixed a spellig mistake in anal.delay (#16204) 2020-03-13 16:48:23 +08:00
Rikard Falkeborn
158668c876
Fix wrong return value in error path (#16201)
Returning -1 in a function with bool as return type is the same as returning
true. This is not the intended behaviour when e.g. allocation fails.
2020-03-13 12:13:57 +08:00
Khairul Azhar Kasmiran
2c8d5982cd
Convert preinc/predec in 3rd part of for statement to postinc/postdec (#16187) 2020-03-12 18:40:46 +01:00
pancake
c91e19f9ff More esil boolification refactorings 2020-03-12 18:22:00 +01:00
radare
56e21e4ac1
Fix one memleak (#16199) 2020-03-12 15:09:31 +01:00
Riccardo Schirone
fbc75d00c0
Fix #16196 - Compilation with tree-sitter support (#16197) 2020-03-12 14:50:17 +01:00
pancake
b894d95bf7 Implement aesB command to step until the given basic block ##anal 2020-03-12 14:10:06 +01:00
pancake
67bcc0db5d Implement tpv command and some random code cleannup ##types 2020-03-12 14:10:06 +01:00
pancake
20cf00fe7f Implement @v: value modifier, like @x: but with endian and size ##core 2020-03-12 14:10:06 +01:00
pancake
4f457230b6 Fix #16173 - rax2's force mode regression and add test 2020-03-12 12:25:56 +01:00
pancake
a56d67cd52 Fix #16192 - segfault in qwert^a^x 2020-03-12 12:08:28 +01:00
Khairulmizam Samsudin
4db77f155e Fix RRegisterType sign for drm command 2020-03-12 11:59:20 +01:00
Riccardo Schirone
41cb001973
Introduce escaping in grep specifiers (#16185)
* Introduce escaping in grep specifiers

Grep specifiers (the part after `~`) can accept a lot of characters.
However, some of those have a special meaning in some contexts and they
should be parsed for better consistency.

For example, `(` and `)` can have particular meanings inside a macro
definition and it's important to allow escaping to differentiate:

(foo; pd~hello)) -> parsing error, there are 2 closing parenthesis
(foo; pd~hello\)) -> user wants to grep for string 'hello)'

* Add some tests for escaped characters in grep specifier
2020-03-12 18:28:45 +08:00
Khairulmizam Samsudin
89cda00652
Add test for x64 to verify fpu and xmm register size and offset (#16186) 2020-03-12 11:48:41 +08:00
Riccardo Schirone
c1c54be39e Change macro syntax to use ; instead of ,
This change is to ease the switch to the new parser and make the syntax
more consistent and easy. As things were before this patch, ',' could be
part of an argument of a command, but at the same time it was used as a
separator when defining a new macro. This difference in how `,` is
interpreter, makes parsing commands harder, as grep specifiers,
arguments, etc. should be parsed differently based on whether they are
inside a macro body or not.

By switching to using `;` as separator in the macro body, arguments,
grep specifiers, etc. can be parsed as they would be outside of a macro
body, making the new parser more consistent and easier.
2020-03-11 00:11:01 +01:00
Óscar Carrasco
bde3fa171b
Fix afs not showing signatures correctly with preloaded sdb types ##types (#16180)
* Check if function name starts with "sym.imp"
* Add test for afs'ing "sym.imp" functions
2020-03-10 18:40:05 +01:00
Sergey Alirzaev
4e1d93bb25
Strip minuses from the hash names for sha256 PE signatures (#16156) ##bin
So sha256 and probably other authentihashes work
Only tested with a sha256-hashed PE
2020-03-10 15:52:42 +01:00
pancake
2a4aa792bf Add pj_ko and pj_ka APIs ##util 2020-03-10 14:36:35 +01:00
radare
61a06e000d
Implement afsj command to get the JSON definition of the function signature ##anal 2020-03-10 14:28:31 +01:00
Rishi Bhatt
f2aaa72fa2
Support asm.cpu for Tricore architecture (#16161) ##asm 2020-03-10 14:10:57 +01:00
HoundThe
5bb50f6a26
Add acvf command and devirtualizing vtable method calls (#16157) ##anal
* Add cmd: acvf [offset] ([class name])
* Added option to search all vtables
* Added simple test
2020-03-10 14:08:14 +01:00
radare
9e11962425
Fix #16169 - Avoid (null) printf in afi* (#16177) 2020-03-10 14:05:53 +01:00
Khairul Azhar Kasmiran
f18c4f71bc
Upgrade to node-r2r 0.4.1 (#16176) 2020-03-10 12:49:49 +01:00
pancake
8f799eb9bd Update support for V in libr/lang ##lang 2020-03-10 12:26:05 +01:00
Khairulmizam Samsudin
d6fa5a9442
Enhance r_reg_get_pack() and r_reg_set_pack() (#16172)
* Add warning if packbits larger than 64bit
* Fix out of bound checking to consider max packed_size
2020-03-10 10:35:09 +01:00
radare
10117bcf78
Implement aeb command to emulate a basic block (#16174) ##anal 2020-03-10 10:33:45 +01:00
pancake
b1352ecd08 Add VdN (afs!) to edit function signature with cfg.editor ##visual 2020-03-10 10:30:32 +01:00
Khairulmizam Samsudin
35346d5a4f
Add r_reg_get() and r_reg_get_pack() for xmm registers (#16171) 2020-03-10 12:16:59 +08:00
pancake
a5856bf3bf After release version bump 2020-03-09 09:45:08 +01:00
Florian Märkl
1271d653c7
Remove some unused members (#16164) 2020-03-09 14:12:48 +08:00
Maijin
2e9607dc54
Add .github/workflows auto-labeler infrastructure (#16154)
Add .github/workflows auto-labeler infrastructure
2020-03-09 12:00:22 +08:00
Florian Märkl
1d8bf0e843
Fix r_anal_switch_op_new() args (#16165) 2020-03-09 11:57:46 +08:00
Florian Märkl
a3fa2dde37
Fix double free in oc (Fix #16163) (#16166)
* Fix double free in `oc` (Fix #16163)
* Add test for `oc`
2020-03-09 11:56:20 +08:00
Florian Märkl
a30da17a6f
Fix some Projects Tests (#16167) 2020-03-08 19:56:34 -05:00
Florian Märkl
ac7f5a8266 Remove RAnal.cmdtail 2020-03-08 19:50:54 +01:00
Florian Märkl
a02e2c841b Remove remaining cmdtail usages 2020-03-08 19:50:54 +01:00
Florian Märkl
d7ae065c8f Add more info to jmptbl test 2020-03-08 19:50:54 +01:00
Óscar Carrasco
23bb5bb3cc
Fix afs not showing types and args ##types (#16074)
* Fix by implementing r_anal_fcn_to_str

* Refactor function syntax

* Fix testsuite

* Fix leaking pointers and code review

* Move __add_vars_sdb from aaft to af

* Fix more tests

* Rename r_function_get_name to r_function_get_signature

* Fix regression and remove extra semicolon

* Fix last regressions
2020-03-07 05:34:43 -06:00
Sergey Alirzaev
e55661bd4c
PE: print the unsupported hash type (#16153) 2020-03-06 08:33:12 +01:00
pancake
e7f940d27b Release 4.3.1 2020-03-05 19:45:09 +01:00