1912 Commits

Author SHA1 Message Date
pancake
6f2fd83b64 Early exit in r2pm -v to avoid double rainbows 2021-03-15 12:37:18 +01:00
pancake
c11cd5c69b
Add R2R_SKIP_ASM env var handling in r2r ##test (#18462) 2021-03-15 01:31:08 +01:00
pancake
3694865726
r2 -b acts like -e asm.bits, which resulted in anal plug issue (#18438) 2021-03-11 20:07:16 +01:00
pancake
4a3479ede3
Dont use large stack buffers and fix overflow in r2r (#18433) 2021-03-10 18:01:07 +01:00
pancake
f07bedfacd
Use proper types in some fields in IO to fix some potential issues 2021-03-04 18:32:59 +01:00
pancake
cafdd18c27 Fix #18391 - Show help in r2pm even before initializing the db ##tools 2021-02-28 18:15:48 +01:00
pancake
30ea521f7b Show useful error message in r2blob 2021-02-14 02:41:34 +01:00
pancake
77cf15c2c3 Fixes to make the r2blob shine again ##build 2021-02-14 02:41:34 +01:00
pancake
da7f0310e4 Fixes for sys/static with acr 2021-02-14 02:41:34 +01:00
pancake
054b5fa46a
Add 32bit Debian packaging and bonus CI fixes ##build 2021-02-13 05:09:30 +01:00
pancake
545f9197f1
Fix the archos regression in the CI (#18327) 2021-02-03 12:07:14 +01:00
pancake
ccfea838b9 Fix asan crash and r2r regression 2021-01-31 23:42:19 +01:00
pancake
8cf1adfb27
Fix and comment the broken debugger tests after last gha update (#18317)
* Add R2R_SKIP_ARCHOS env var handling in r2r to fix TCC suite
2021-01-31 23:00:38 +01:00
ChD1
6187be3be6
Fixes in ae command handler and some null derefs (#18307) 2021-01-29 19:49:41 +01:00
Keegan Saunders
590eaa6852
Assign radare2 binr target ##build (#18306)
This way, when radare2 is used as a subproject with cli=enabled, the
radare2 executable can be referenced

Co-authored-by: Keegan Saunders <meme@users.noreply.github.com>
2021-01-28 18:39:50 +01:00
Qijia Liu
1d62d7df13 Fix memleak in db/asm/arm_64 2021-01-14 00:05:56 +01:00
pancake
1184610971
Fix the CI badge and fully rewrite all the workflows to make sense ##build
* Windows, Linux, Static, macOS, Android, iOS builds published for every commit
* Kept coverage, coverity, fuzzing tests, lgtm and -Werror jobs
* Kill the continuos, the over-engineered matrix and other empty or unnecessary tasks (250 vs 900LOC)
* Jobs TODO: fatmac, termux and rpm (centos) packages
2021-01-12 13:41:21 +01:00
liumeo
965f3ed10e Use pj in dmj, dmhj & fix regex r2r ##refactor 2021-01-09 12:35:20 +01:00
yossizap
39bcebdc98 Added support for regex in test output ##test
- pancake has improved the original patch
2021-01-08 04:42:07 +01:00
pancake
e79deb8e1f Remove --without-r2r configure option ##build 2021-01-05 16:04:57 +01:00
pancake
d3157e2ed3
Fix 32 critical COVs (UAF, UB and OOB) (#18077) 2020-12-21 01:10:22 +01:00
Lazula
243bc871c3 Multiple refactors in io and util ##io ##util ##refactor
* Add r_io_map macros throughout code base
* Update string NULL-checking with renamed functions r_str_get() and r_str_getf()
* Change string NULL-checks throughout code base to use functions
* Add r_str_get_fail() to specify a custom string to return if NULL-check fails
* Mark JSON to be updated with PJ with "TODO PJ"
* Incidental style updates such as missing spaces
2020-12-13 05:09:13 +01:00
GustavoLCR
94b2d83004
Add option to log r2r test results and publish it in the CI (#17964) ##test 2020-11-24 03:43:41 +01:00
Khairul Azhar Kasmiran
9c66a31a97
Add 6 minutes to cmd_aae timeout and skip aaa for swift_read fuzz test (#17805)
* Add 6 minutes to the cmd_aae test
* Skip aaa when doing swift_read fuzz test on asan
* Bump linux-meson-gcc-newshell-tests timeout to 60 minutes
2020-10-27 18:19:01 +08:00
Damien Zammit
2ccd0c0cd2
r2pm: Add R2PM_GITSKIP env var to skip git checkout master && git pull (#17646) 2020-10-17 10:43:46 +02:00
Riccardo Schirone
af337b1439
Prevent multiple threads from opening new files at the same time ##r2r (#17736)
This should fix a nasty issue with r2r, where tests never terminated.
That was caused by the jq process waiting indefinitely for input from
fd0, because the other end of the pipe was never closed.

Indeed r2r_subprocess_start forks and closes known unnecessary opened fd
in the child process, however it does not consider also all the other
file descriptors that could have been created by other threads
simultaneously. As fd are per-process and not per-thread, file
descriptors created by other threads while doing e.g. pipe to spawn a
separate jq process will clutter other threads (and following jq
processes) as well. If two jq processes happen to keep a fd to the other
end of the pipe for the fd0 of the other jq process, none of them
terminates, thus they never close those spurious file descriptors,
causing tests to hang.

This tries to fix the issue by making sure only one thread at a time can
start a subprocess. In this way no other FDs can be created while a
thread is in the middle of r2r_subprocess_start.
2020-09-30 10:40:23 +02:00
Khairul Azhar Kasmiran
0e1fa7c341
Do partial =h test on Windows (without /cmd and using curl) (#17729)
* Properly default http.root on Windows
* Do partial =h test on Windows (without /cmd and using curl)
2020-09-29 21:23:26 +08:00
bazuchan
9d61f554f5
Set R2_* variables by calling r2 -H only once (#17650) ##r2pm 2020-09-18 13:39:05 +02:00
Khairul Azhar Kasmiran
d9057505dc
Set RPATH/RUNPATH on r2 libs too if local (#17639) 2020-09-15 09:16:14 +02: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
Riccardo Schirone
3f4079c4ca
Add support for TIMEOUT key for cmd tests (#17582) ##r2r 2020-09-04 15:17:17 +02:00
Khairul Azhar Kasmiran
7066f58d8c
r2r: Set cmd test to NULL on load failure (#17512) 2020-08-25 18:21:38 +08:00
Khairul Azhar Kasmiran
52668c02d2
r2r: Check whether test has EXPECT or EXPECT_ERR (#17508) 2020-08-24 18:29:37 +08:00
Khairul Azhar Kasmiran
10b2e9a797
r2pm: Remove trailing slash from R2PM_GITDIR (#17482) 2020-08-17 22:34:57 +08:00
Khairul Azhar Kasmiran
5d4680fc01
Ensure cloned pkg dir matches the pkg name (#17472) ##r2pm 2020-08-17 10:53:39 +02:00
pancake
8efd721dba
Fix Cydia/iOS packaging and compilation issues ##build (#17342) 2020-08-14 13:17:32 +08:00
Khairul Azhar Kasmiran
70f88cb361
r2pm: Allow reuse of gitdir-cleaning code in package scripts (#17442) 2020-08-13 22:03:43 +08:00
Florian Märkl
68a1db448d
Merge everything time-related in r_time.h (#17445) 2020-08-12 18:54:49 +02:00
Florian Märkl
8c94f34e90
Add r_sys_now_mono() and use in r2r ##util (#17276) 2020-08-11 20:26:06 +02:00
Khairul Azhar Kasmiran
7ed581d2de
r2pm: Allow package script to declare cleaning is done (#17411) ##tools 2020-08-08 18:37:41 +08:00
Khairul Azhar Kasmiran
613d480d10
r2pm: Don't clone while cleaning (#17406) 2020-08-06 18:37:07 +08:00
Riccardo Schirone
48c30dfd99
Support compilation with meson on old systems like CentOS6/DebianWheezy ##build (#17345)
* Compile tree-sitter and newshell parser with gnu99 if possible ##meson
* Make sure to use `-lrt` when needed to use clock_gettime ##meson
2020-07-27 12:25:06 +08:00
Khairul Azhar Kasmiran
0f0ffee510
r2pm: Support cleaning of package cloned to <package>.git (#17357) 2020-07-27 12:24:16 +08:00
pancake
2c48b60f1d
Fix sys/static.sh after 2d160f250918609fa8f399a33f003cedaa85d888 (#17336) ##build 2020-07-24 11:55:53 +02:00
pancake
5ef1e7e41c
Fix missing grep glitch in r2pm (#17334)
Co-authored-by: pancake <pancake@nopcode.org>
2020-07-23 12:13:43 +08:00
Riccardo Schirone
2d160f2509
Avoid sdb double headers (#17249) ##build
* Avoid duplication of SDB headers in libr/include

SDB is an external project and as such it should live in shlr. However,
for simplicity in dealing with the include flags, the SDB headers were
copied in libr/include as well. This patch just keeps the SDB files
confined in shlr/sdb and make sure various r_* libs use the headers from
there.

* Fix pkgconfig file generation
2020-07-21 10:28:43 +02:00
Khairul Azhar Kasmiran
d970c64292
Move r2r diffchar code into r_util (#17316) 2020-07-20 00:44:27 +08:00
Khairul Azhar Kasmiran
47c774ad0e
r2r: Use Needleman-Wunsch to diffchar (#17248) 2020-07-17 20:58:06 +08:00
Riccardo Schirone
0955b27c9e
Reintroduce --without-r2r configure option (#17294) ##build
This reverts commit 8758fa6b40b83d74abf043e2dcbbafc19846ff82.
2020-07-17 13:00:14 +02:00
Riccardo Schirone
e3b67f124c
Release pipeline with GitHub Actions (#17192)
* Make sure meson can build with `system` = `android`.
* Add support for binr/blob in meson build
* Create release GitHub Actions workflow
* Add publish-docker-image job
* Also create Ubuntu packages and ship static windows zip
2020-07-09 12:07:45 +08:00