Commit Graph

1926 Commits

Author SHA1 Message Date
Kamil Rytarowski
9d761f6a88
Avoid array subscript type issues (#18295)
Cast char to unsigned char for standard reasons and security purposes.

Fixes build issues on NetBSD.
2021-01-26 13:08:58 +01:00
pancake
51145a117a Fix some of the last coverities related to UAF and OOBREAD 2021-01-25 03:08:33 +01:00
Alexis Ehret
5b1b0c0da6 Fix dead increments 2021-01-25 00:34:58 +01:00
Alexis Ehret
21c98d60ac Remove all dead assignment detect by clang sa (#310) ##rizin 2021-01-19 05:37:17 +01:00
pancake
171b994831 Fix #18212 - Detect RISCV gdb servers ##debug 2021-01-13 13:30:07 +01:00
pancake
298888dfec Fix issues spotted with gcc -Werror 2021-01-13 01:28:10 +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
Dennis Goodlett
528e6598a1
Add arall:// and liball:// open_many plugins #io (#18196) 2021-01-10 17:34:38 +01:00
Dennis Goodlett
f695d2a24f
Fix and refactor the ar:// plugin ##io (#18180)
Co-authored-by: Dennis Goodlett <dennis@hurricanelabs.com>
2021-01-07 10:23:08 +01:00
pancake
6b31bacfae Update www/t from radare2-webui ##webui 2020-12-29 00:55:17 +01:00
pancake
4b6fd801e4
Import last random rizin fixes and more (#18128) 2020-12-28 23:34:16 +01:00
pancake
85cce84722 Update SDB to get some more boolified APIs 2020-12-28 22:02:48 +01:00
pancake
46a658c9f2
Update for sdb-1.6.0 (#18114) 2020-12-27 12:09:20 +01:00
pancake
d3157e2ed3
Fix 32 critical COVs (UAF, UB and OOB) (#18077) 2020-12-21 01:10:22 +01:00
Paul I
c8c508c5bd Revert "Fix clang-cl build"
This reverts commit 66aa8ee645.
2020-12-19 23:22:37 +01:00
pancake
b462a7691c
Remove enyo and p unmaintained webuis (2MB), still available via r2pm ##webui 2020-12-16 14:35:03 +01:00
pancake
40c8825820 Update capstone and SDB 2020-12-14 16:10:35 +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
pancake
efd8e07112
Do not rebuild everything when running make in the root directory ##build (#18025) 2020-12-13 02:45:42 +01:00
pancake
6693e33fb4
Bring back tcc support ##build (#17295)
* Fix TinyCC build ##build
* Jemalloc - fix TinyCC build ##build

Co-authored-by: pancake <pancake@nopcode.org>
Co-authored-by: Anton Kochkov <xvilka@gmail.com>
2020-12-11 09:42:12 +01:00
pancake
7df28e1fb2
Implement the comma command to manage user-defined tables ##util (#17702)
* Import export in CSV and R2 formats
* Export in JSON, ascii-art, columns, r2, ..
* For example: aaa;aflt>$a;,.$a,/size/sum
2020-12-09 03:39:49 +01:00
Anton Kochkov
e0109897f9 Fix GRUB compilation with TinyCC 2020-12-04 16:30:23 +08:00
Liumeo
f18e431287
Fix s390x db/cmd/cmd_fs (#17950) 2020-11-25 17:49:29 +08:00
Paul I
66aa8ee645 Fix clang-cl build 2020-11-18 18:06:13 +08:00
Paul I
b17a7e6eb0 Update sdb to 2faeca6dfe516b3ab5f1fcd3655d878fdcbdad0f 2020-11-12 15:14:42 +08:00
Liumeo
38a13c94bb
Fix MSVC warning LNK4006 (#17885) 2020-11-02 12:27:02 +08:00
yossizap
ac229c3216
Attach to target pid/tid on remote lldb connect ##debug (#17847) 2020-11-01 01:42:31 +01:00
Anton Kochkov
486b7bee72 Regenerate parser files 2020-10-30 16:47:04 +08:00
Anton Kochkov
aaa02245b5 Update tree-sitter to 0.17.2 2020-10-30 16:47:04 +08:00
Liumeo
db450794bc
Clean grub/kern/mm.c ##refactor (#17826) 2020-10-26 13:58:34 +08:00
Liumeo
e9a697f2a9
shlr/grub - fix MSVC warning pointer truncation (#17820) 2020-10-23 13:20:25 +08:00
Anton Kochkov
d5e1247757
Remove some of MSVC warnings (#17811) 2020-10-21 15:00:10 +08:00
Anton Kochkov
4bcce838df
Update shlr/lz4 to 1.9.3 293713a4fa085d73f396200d2387631b045c118e (#17738) 2020-09-30 16:06:03 +08:00
pancake
aa7de006e6 Fix TinyCC build ##build 2020-09-27 13:33:26 +08:00
Riccardo Schirone
13ca72df81
Make sure $( is always considered as cmd substitution ##newshell (#17699)
Sometimes argument could be "value$", but this commits ensures that if
the argument is "value$(...)", then `$(...)` is considered as a
cmd_substitution_arg.
2020-09-23 21:43:36 +02:00
Riccardo Schirone
ac6bdc1e7e
Add support for additional cmd_identifiers ##newshell (#17696) 2020-09-23 14:01:24 +02:00
Florian Märkl
ed00e85e65
Use sdb == for generating dbs in meson (#17676) 2020-09-21 15:11:46 +02:00
Riccardo Schirone
eab6061228
Allow spaces for some commands like <cmd> @ <arg-with-spaces> (#17668) 2020-09-21 12:48:47 +08:00
Riccardo Schirone
87495e591d
Fix #17351: Let external scanner parse #! cmd identifier as well ##newshell (#17629) 2020-09-15 16:06:08 +02:00
Anisse Astier
a4c76ff641
Bring merge sort and insertion sort cmp function semantics together (#17473) ##util
Merge sort uses cmp (a, b) < 0 for its first test branch, and insertion
sort cmp (a, b) > 0 ; which means the 0 boundary goes in one case in one
branch, and in the other sort function in the other branch.

It makes it possible to support compare function that return true/false
instead of -1/0/1; although this isn't an acceptable use of
RListComparator, this prevents future bugs from appearing, because this
works with insertion sort, but not merge sort.

The main advantage of this patch is that both sort functions should sort
equal elements the same way. This stability is important for zignatures
for example.
2020-09-09 15:45:34 +02:00
Riccardo Schirone
3e3efcc005 Test compilation with various capstone versions ##build
Do not use #include <capstone/..>

This ensures compatibility with both capstone v3 and capstone as
installed on most distributions, where the pkg-config file of capstone
already adds -I/usr/include/capstone (with that dir directly containing
the headers).
2020-09-09 15:39:33 +02: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
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
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
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
abcSup
fef7638a1e Fix Linux native debugger freezes after interrupted by user in attach sessions and refactor ##debug 2020-08-18 12:23:30 +08:00
abcSup
ab70092664 Improve support for debugging multihreaded processes on Linux ##debug 2020-08-18 12:23:30 +08:00
pancake
8efd721dba
Fix Cydia/iOS packaging and compilation issues ##build (#17342) 2020-08-14 13:17:32 +08:00
pancake
8b33d764a7
Fix #3929 - Enable LTO in sys/static.sh ##build (#17141)
* Fix #3929 - Enable LTO in sys/static.sh
* Update Ubuntu to 20.04 for static build
* Use `gcc-ar` when needed
* Do not use "c" option for ${AR}
* Use `$$AR` instead of `$AR`
* Aim to fix  `-dynamiclib` issue outside darwin
* Run tests for static LTO build

Co-authored-by: pancake <pancake@nopcode.org>
Co-authored-by: Anton Kochkov <xvilka@gmail.com>
2020-08-13 13:55:39 +08:00
Riccardo Schirone
31573479e0
Directly pass multi-lines command to newshell (#17348) ##newshell
Fixes #16684
2020-07-28 18:11:14 +02:00