163 Commits

Author SHA1 Message Date
pancake
2be5ff8762
Use r_core_cmd_str_pipe when using . in a panels (#17982) ##visual 2020-12-16 14:25:36 +01:00
Khairul Azhar Kasmiran
fe5b80d615
Fix asan r2pipe test by updating libasan and using LD_PRELOAD (#17594)
* Set LD_PRELOAD for unit tests
* Declare failed debug tests as broken if no assertion or Sanitizer in output
* Check for ASAN=1 in cmd_pipe test
* Set asan: true in the GitHubCI matrix
* Fix ttyname-related runtime error
* Upgrade asan build to Ubuntu 20.04
* Quick fix for reg/arena.c runtime error
2020-09-11 18:47:27 +08:00
Khairul Azhar Kasmiran
8fb7c484da
Windows #!pipe: Remove busy-wait on PeekNamedPipe() (#17344) 2020-07-29 09:35:01 +08:00
pancake
d441baad62
Fix latest COVs, remove dead code and unnecessary global variables (#17231)
Co-authored-by: pancake <pancake@nopcode.org>
2020-07-22 19:37:31 +08:00
Riccardo Schirone
7ee93fb457
Fix rlang scripts and cpipe when non standard paths are used ##lang (#17198)
* Get RLangPlugin by name, not by extension
* Directly pass PKG_CONFIG_PATH and set LD_LIBRARY_PATH on cpipe
* Add tests for `#!`
* Move tests to archos tests and do not compile c/cpipe on non-unix
* Escape also in c RLangPlugin
* Use `#pragma message` on windows
* Do not include C/cpipe RLangPlugins on windows
* Also the C plugin is not ready to be used on windows
2020-07-10 13:41:58 +08:00
pancake
13e1636d97
Implement RLang.spp for templated scripting ##lang (#17067)
Co-authored-by: pancake <pancake@nopcode.org>
2020-07-01 14:14:18 +02:00
pancake
5dc86c50c0
Move #!v out of core (it's now available via r2pm) ##lang (#16997)
* RLang.V support moved to radare2-extras ##lang

Co-authored-by: pancake <pancake@nopcode.org>
2020-07-01 09:32:09 +08:00
Khairul Azhar Kasmiran
896ba91e1e
#!pipe: Fix stray command output on Windows and add r2pipe.py test (#17156) 2020-06-30 17:41:39 +08:00
Khairul Azhar Kasmiran
4acc6de82e
Fix Windows #!pipe (#17139)
* Fix Windows #!pipe
* Fix for case where #!pipe target is not r2pipe-aware
2020-06-24 19:42:58 -05:00
pancake
bd9a604a87
Check for return values in about ~50 method calls (#17025) 2020-06-15 11:24:43 +02:00
pancake
8f799eb9bd Update support for V in libr/lang ##lang 2020-03-10 12:26:05 +01:00
Anton Kochkov
b4de5c5113 Some more coverity fixes (#15802) 2020-01-14 12:57:34 +01:00
Anton Kochkov
0c46c3e1e3 Some coverity fixes 2020-01-08 14:16:11 +01:00
GustavoLCR
2a7025208a Print child output in pipe lang plugin ##windows (#15240) 2019-10-10 04:42:32 +02:00
pancake
a6ee807058 Fix vlang plugin to run scripts and add example ##script 2019-10-01 01:44:17 +02:00
pancake
89e6362a4e Add support for the V programming language ##core 2019-09-30 18:51:29 +02:00
Paul I
78f2b12d0b Fix potential memleaks (#15057) 2019-09-17 02:14:32 +02:00
radare
e1cf65332a
Use r_sandbox_fopen instead of fopen (#14832) 2019-08-18 17:19:53 +02:00
pancake
058088bba8 Enlarge RLang.cmd() to 8KB length commands ##r2pipe 2019-07-10 14:02:15 +02:00
Florian Märkl
fcf1038f98 Add r_sys_exit to proper quit ##core 2019-06-02 11:28:17 -04:00
Khairul Azhar Kasmiran
8d2b16d74f r_str_prefix() -> r_str_prepend() (#14048) 2019-05-13 16:16:13 +02:00
GustavoLCR
9e9eac5171 Fix lang_pipe_run hang in Windows (#13960)
* Fix lang pipe hang in Windows
* Fix hang and double-free
2019-05-05 11:11:58 +02:00
GustavoLCR
3fba693b91 Add support for UTF console input in Windows (#13338) ##windows
* Add support for UTF console input in Windows
* Convert ANSI input to UTF-8
* Convert UTF-8 to acp when calling ANSI version of functions
* Determine if Windows console output is UTF-8 on the fly
2019-03-18 16:05:38 +08:00
radare
32e494a696
Improve rap:// code, r2p_ is now r2pipe_ ##io (#12699) 2019-01-09 02:47:35 +01:00
Paul I
b2c7f7ef6c Some fixes (#12670) 2019-01-07 00:29:23 +01:00
David CARLIER
fd93e26d0e Fixes #12531 proposals (#12536) 2018-12-22 10:01:03 +01:00
dav1901
303a57bb85 Minor code cleanups/fixes (#12519) 2018-12-20 11:50:29 +01:00
dav1901
a6b44e03fe Fix warnings (#12309) 2018-11-25 01:46:57 +01:00
dav1901
ef42e5a205 Fix few more covs (#12303) 2018-11-23 20:50:23 +01:00
radare
d05292e485
Fix 80 warnings coming from gcc8.2 (#12280) 2018-11-22 22:11:43 +01:00
Riccardo Schirone
d6aab51c2b WIP: gcc8 warnings (#11795)
* arch/ebc: fix style and remove gcc8 warnings
* parse/parse_ppc_pseudo: fix gcc8 warnings
* parse/parse_mips_pseudo: fix gcc8 warnings
* anal/esil: fix strncat usage
* shlr/tcc: fix snprintf usage
* parse/parse_dalvik_pseudo: fix sprintf -> snprintf
* lang/vala: fix gcc8 warnings
* core/vmenus: fix snprintf usage
2018-10-12 12:17:29 +02:00
Florian Märkl
1ed251b894 Make pipe lang plugin sleep while waiting for pipe (#11622) 2018-09-22 20:11:24 +02:00
Florian Märkl
caf18865df Use waitpid with WNOHANG in lang_pipe_run() (#11278) 2018-08-28 10:35:50 +02:00
pancake
9bcae5a9d2 Fix last covs 2018-05-21 22:13:07 +02:00
pancake
4d61d66e29 Add support for the Zig programming language 2018-05-16 17:12:17 +02:00
Paul I
7e9f982849 Meson: some cleanup (#10076) 2018-05-16 10:24:35 +02:00
pancake
0612ab7275 Minor indentation fixes coming from the fix-pipes pr 2018-03-23 15:03:17 +01:00
Jose Diaz
e74aadad28 Renaming char_to_w32 => utf8_to_utf16 2017-11-03 10:27:18 +08:00
Jose Diaz
527ff71d41 Convert char to windows unicode 2017-11-03 10:27:18 +08:00
pancake
79de4e59a2 Handle argc/argv in RLang.C 2017-10-22 18:46:34 +02:00
pancake
67063334a0 Support JSON for Vala 2017-09-04 06:32:11 +02:00
pancake
3049f15a0d Disable noisy warnings in valac 2017-09-04 06:08:57 +02:00
Duncan Ogilvie
8ec858ebf7 fix a deadlock in lang_pipe_run on r2pipe.open() (#8408) 2017-09-02 17:36:14 +02:00
Marc
80d4b44b2e Fix random code style issues 2017-07-13 00:46:27 +02:00
SkUaTeR
1b5a746786 add more fixes to msvc build (#7468)
* add more fixes to msvc build

* more fixes
2017-05-10 22:12:49 +02:00
pancake
c4b6da3eaa Support -e -s in #!vala 2017-05-09 03:22:47 +02:00
davidpolverari
1fb422b532 Fix #6162 - Renames r_str_concat to r_str_append 2017-03-16 22:29:49 +01:00
Giovanni
43532031c4 Fixes for windows and some are also global (#6936) 2017-03-08 08:49:31 +01:00
condret
30349b0c3a add lib language-plugin 2017-02-17 21:11:15 +00:00
Álvaro Felipe Melchor
87724384d1 added r_cons_break_{push/pop} to handle ^C better
Besides an UAF has been fixed afecting only ELF
2016-11-21 16:56:12 +01:00