Commit Graph

2320 Commits

Author SHA1 Message Date
pancake
53e908d802
Generalize vector instruction types instead of following intel-specific ##analysis
* MMX -> VEC64
* XMM -> VEC128
* YMM -> VEC256
* ZMM -> VEC512
2022-11-02 14:02:40 +01:00
pancake
9a4fe919c6
Prefer _tostring() instead of _to_string() ##api 2022-10-24 20:59:18 +02:00
pancake
0d3618414a Fix few windows warnings 2022-10-24 17:55:34 +02:00
pancake
4ed98d75c3 Fix more leaks in RAnal and RCore 2022-10-17 01:14:56 +02:00
pancake
053fe8d682 Upgrade capstone and remove the patch 2022-10-13 23:28:30 +02:00
pancake
a06ade1796
Balance spacings in braces ##indent 2022-10-13 21:21:34 +02:00
pancake
88a4c3d5ce Upgrade sdb fixing a buffer underflow in itoa() 2022-10-11 19:42:16 +02:00
pancake
06bfb6abf1 Bump cs5 to support FNOP on m68k ##arch 2022-10-11 18:51:20 +02:00
pancake
afbb7a7b98 Add fix for the invalid free crash in capstone 2022-10-11 18:50:40 +02:00
pancake
62fdc0f0ff
shlr/yxml -> libr/util/rxml - fork the abandoned yxml parser and expose it ##util 2022-10-10 12:33:43 +02:00
pancake
9e13e11c4f Ensure shlr/capstone is up-to-date in sys/install.sh 2022-10-10 11:22:42 +02:00
pancake
d0de591dc7 R_BIN_NM -> R_BIN_LANG ##api 2022-10-07 16:17:28 +02:00
pancake
df32ab437f Add lang field for classes, symbols and methods, expose it via ic ##bin 2022-10-07 16:17:28 +02:00
pancake
f5cda53a1e Use the latest capstone5-next with updated aarch64 support ##arch 2022-10-06 20:32:30 +02:00
pancake
1da9127150
Make RDebug.regRead() and regWrite() return bool ##debug 2022-09-21 12:22:46 +02:00
pancake
2bf0723768 Update sdb to introduce ut64 kv apis 2022-09-19 16:14:35 +02:00
pancake
7020c9425c Fix lgtm tips 2022-09-18 20:41:55 +02:00
pancake
92236e4b1e Update to the latest SDB that's changing the sdb_itoa() signature 2022-09-18 20:38:58 +02:00
pancake
1944e59783 Remove some more r_hash leftovers 2022-09-16 10:46:24 +02:00
pancake
a6e0d6c480 Merge rhash into rcrypto and improve apis ##api
* Update meson and make build systems
* Remove leftovers and unused dependencies
2022-09-15 11:25:40 +02:00
pancake
aadacb2c9c Update sdb fixing windows include issues 2022-08-30 12:30:23 +02:00
pancake
b6e7292019 Enable linting for trailing tabs ##lint 2022-08-22 23:25:40 +02:00
pancake
ab0ecf90c3 Update sdb to fix an uubread in query() 2022-08-19 23:11:47 +02:00
pancake
75172066bd Fix wrong condition recently introduced 2022-08-18 20:40:52 +02:00
pancake
7a35f03471 More source spacing linting 2022-08-18 14:37:29 +02:00
pancake
a538b2b700 Add =0 and =1 lintings 2022-08-18 13:58:40 +02:00
pancake
d6e42b8728
Update zlib from 1.2.9 to 1.2.12
* Fixes a bunch of bugs spotted by coverity as well as other CVEs reported in the last update
2022-08-16 18:00:40 +02:00
pancake
aa990230cc Lint for col0 eprintfs 2022-08-15 18:28:07 +02:00
Paul B Mahol
c79b5f76cf Fix integer overflow in R_ANAL_JAVA_COND_OP 2022-08-07 00:30:05 +02:00
pancake
a66f301d18 Upgrade to the latest capstone-next for ppc purposes ##arch 2022-08-01 19:31:10 +02:00
Richard Patel
dcd740dd53
Refactor a few eprintf to R_LOG_ERROR ##refactor 2022-08-01 00:21:21 +02:00
pancake
fb67f995b7 Revert "Update capstone which improves the PPC support ##arch"
This reverts commit a175015eb3.
2022-07-31 15:29:15 +02:00
pancake
a175015eb3 Update capstone which improves the PPC support ##arch 2022-07-31 14:48:55 +02:00
pancake
d6d14b2a71 Add spacing linting checks for public function signatures 2022-07-27 10:34:24 -04:00
pancake
10a2fc99d8 Remove unnecessary call in libzip 2022-07-15 15:37:31 +02:00
pancake
9388a7d197 Remove duplicated symbol when statically linking the updated libzip 2022-07-15 15:25:01 +02:00
pancake
2b3d0f1f0a
Handle arm64's BTI instruction as a nop ##analysis (#20452)
* Revert "ARM disassembler: don't compute [pc, reg] memory location ##analysis"

This reverts commit 97761f8ef0.
2022-07-15 14:07:21 +02:00
pancake
367f888818
Update the embedded libzip under shlr/zip ##io
* Fix problems with some ZIP files considered corrupted
2022-07-15 12:27:20 +02:00
Sergi Àlvarez i Capilla
ba6c067ccc Update to the latest capstone with fixes for ebpf, tls and arm 2022-07-07 12:40:25 +02:00
pancake
8c80cfe7d9 Fix #20405 - Multiple fixes and improvements in projects ##projects
* io maps are now saved and restored
* add an extra test and review/update others
* Use omu in om* and run o*;om* in P
* Better handling multiple P subcommands and help msg
* Use more R_LOG instead of eprintf
2022-07-05 10:56:04 +02:00
pancake
d93c452768
Merge asm.java into anal.java ##refactor
* Exposes an asm.assembler bug so we disable that for now

Co-authored-by: Richard Patel <me@terorie.dev>
Co-authored-by: pancake <pancake@nopcode.org>
2022-07-03 11:15:20 +02:00
pancake
f71b4b47f9 Upgrade from latest sdb 2022-07-02 22:40:00 +02:00
pancake
ba5847c473 Update the /m webui with fixes for the disasm and search widgets 2022-07-02 19:44:32 +02:00
pancake
595c6bd78c Upgrade to the latest sdb 2022-06-16 18:24:34 +02:00
Richard Patel
5f84a020d7 Add missing Capstone plugins to Meson 2022-06-10 22:37:50 +02:00
Richard Patel
dd7c076bae Fix bpf, evm Meson builds 2022-06-09 19:10:36 +02:00
pancake
8966c99ae7
Farproc and pyvm is 32 bit (#20260) 2022-06-09 17:37:06 +02:00
pancake
41dd134f4b Update to the latest capstone to fix a bug for BPF ##disasm 2022-06-09 15:54:42 +02:00
pancake
475398b88f Fix infinite loop in gdbserver =g ##crash 2022-06-08 20:47:48 +02:00
pancake
4039c23f3e
Cleanup gdb:// uri handling in r2's main.c 2022-06-08 20:18:38 +02:00
pancake
dbff56ff60
Fix gcc12 warnings. Ref #20087 2022-05-27 12:42:58 +02:00
pancake
6f6ea27b67
Introduce R_LIKELY macros and update sdb ##core
* Bear in mind the gnuisms
2022-05-21 21:34:25 +02:00
pancake
f46c4e793f
Move more local static into the thread-local-storage (#20134) 2022-05-19 12:41:26 +02:00
pancake
7b6cfff3ca Update SPP to fix the HAVE_SYSTEM warning 2022-05-19 10:51:05 +02:00
pancake
d7f3babd63
Update sdb with fixes for -Wshadow (#20058) 2022-05-18 10:29:11 +02:00
pancake
043fa1734a Fix last covs 2022-05-10 11:36:50 +02:00
pancake
af43ff7e9d Better material webui disasm defaults ##webui 2022-05-07 21:19:48 +02:00
pancake
a3bdbaeebb Fix /index missing icon and update project commands used ##webui 2022-05-07 20:11:50 +02:00
Mario Haustein
903986629f
Make capstone include directories consistent ##build 2022-05-04 13:30:30 +02:00
pancake
14d9f03305
Honor capstone commit in ci ##build 2022-04-26 11:49:53 +02:00
pancake
ecc44b6a2f Fix oobread in java parser ##crash
* Reported by @bet4it via @huntrdev
* BountyID c8f4c2de-7d96-4ad4-857a-c099effca2d6
* Reproducer: bootstrap.class
2022-04-24 21:53:13 +02:00
pancake
0927ed3ae9 Fix oobread crash in java parser ##crash
* Reported by @bet4it via @huntrdev
* BountyID: 229a2e0d-9e5c-402f-9a24-57fa2eb1aaa7
* Reproducer: poc4java
2022-04-24 21:53:13 +02:00
pancake
a45ad575b1 Update material webui with latest tweaks 2022-04-20 00:27:17 +02:00
pancake
1e10eb92f0 Remove broken and outdated graph webui ##webui 2022-04-19 16:44:22 +02:00
pancake
a253f61c97 Update the www/m webui with latest versions of all the frameworks ##webui
* Thanks to FrenchYeti for cleaning up the build system of
* all the radare2-webuis and fixing some xss bugs in the
* material webui. Next update will happen before the release
2022-04-19 16:11:35 +02:00
Sergi Àlvarez i Capilla
8eceab96d4 Update capstone to the latest commit in the next branch 2022-04-09 11:12:24 +02:00
pancake
c8ae21f68f
Only build library archives when -Dblob is provided ##build
* Lowers the amount of objects from 2400 to 1500
2022-03-22 11:59:13 +01:00
pancake
82794237d7
Update sdb and fix some more unused return value warnings 2022-03-22 11:12:43 +01:00
pancake
245babbf9e
Lots of cleanups to reduce the regressions in TCC ##refactor
* Cleanup crypto.aes and anal.arm_cs to make the latest tcc happy
* Dont pick latest tcc. as its broken (-30 commits for now)
* Dont pass multi-dimensional arrays as argument
* Don't assume TCC supports threads, because it doesnt
* Many intrinsics are missing still for tcc on darwin-arm64
* lz4 code crashes when compiled with latest tcc and needs a full rewrit
* Add more null checks here and there
* Remove unused code in the tcc parser
2022-03-17 18:40:58 +01:00
pancake
7699f37c7d Fix warnings spotted by latest XCode (unused variables) 2022-03-17 10:12:02 +01:00
pancake
4ba0af5d1d Fix meson -Dblob=true builds for static ##windows 2022-03-16 00:48:50 +01:00
pancake
f8a35da205
Dont use != NULL as its implicit in C, even for bool casts ##refactor
$ find binr libr -name "*.c" -exec sed -i -e 's/ != NULL//g' {} \;
2022-03-15 19:54:04 +01:00
pancake
4648f448e1 Fix some static meson blob dependency leftovers ##build 2022-03-15 19:29:16 +01:00
pancake
4bed905d8a
Fix msvc warnings (#19827) 2022-03-15 19:27:34 +01:00
Sergi Àlvarez i Capilla
ae65a86282 Update to the latest yxml from git 2022-03-15 11:51:26 +01:00
Lazula
d507bda91c Remove R_EMPTY and R_EMPTY2 2022-03-13 11:26:10 +01:00
Sergi Àlvarez i Capilla
f3a9b51ba6 Update capstone5 reference commit 2022-03-10 18:29:49 +01:00
Sergi Àlvarez i Capilla
aef278ee9c Make -Dblob=true statically link all r2 libraries ##build 2022-03-02 11:30:28 +01:00
Lazula
bc877cbef6 Kill dsjson, use PJ for java json, fix java prototypes j 2022-03-01 15:50:39 +01:00
pancake
4df6a64945 Update to the latest capstone, fixing arm64 issue 2022-02-28 10:27:56 +01:00
pancake
3a5e758a4c Remove duplicated logic related to lz4 and meson 2022-02-27 19:03:10 +01:00
Sergi Àlvarez i Capilla
f8c34ed122 Fix timeout analyzing a small class reported by clusterfuzz ##crash 2022-02-26 15:14:35 +01:00
pancake
0ad181b464 Sync sdb again from git 2022-02-25 22:59:29 +01:00
pancake
8959e053bc
Add some sign extend to some v850 st/sst insns ##esil 2022-02-25 16:17:37 +01:00
pancake
258656a1c9 Update to the latest sdb and acr 2022-02-25 13:30:43 +01:00
pancake
d087e7f816
Update to the latest SDB from git (what will be 1.8.6) (#19750)
* Fix some extern definitions in include files
* Code cleanup ensuring casts everywhere
* Now compiles as C++
2022-02-24 01:06:24 +01:00
Sergi Àlvarez i Capilla
4a11460c9d Build fixes for wasi/wapm/wasm and update sdb ##build 2022-02-16 10:58:03 +01:00
Sergi Àlvarez i Capilla
46a69a5014 Fix all the latest covs which spotted new findings 2022-02-15 12:05:50 +01:00
Sergi Àlvarez i Capilla
e13fb7d183 Support building with system-provided lz4 library ##build 2022-02-15 11:43:50 +01:00
Sergi Àlvarez i Capilla
a4af656774 Support local charset file loading and fix echo issue in sdb ##charset 2022-02-12 23:04:42 +01:00
pancake
f774e4efd8 Update to the latest lz4, fix some bounds but still asserts
* make -C shlr/lz4 sync
2022-02-11 00:20:18 +01:00
Sergi Àlvarez i Capilla
a61dce25a6 Minor cleanup in bin/sdb logic 2022-02-10 19:59:17 +01:00
Sergi Àlvarez i Capilla
6c4428f018 Improve boundary checks to fix oobread segfaults ##crash
* Reported by Cen Zhang via huntr.dev
* Reproducer: bins/fuzzed/javaoob-havoc.class
2022-02-08 15:03:16 +01:00
Sergi Àlvarez i Capilla
a638f6a073 Code cleanup in shlr/java 2022-02-08 15:03:16 +01:00
Sergi Àlvarez i Capilla
b19ad118a5 Move java globals into the tls 2022-02-08 15:03:16 +01:00
Sergi Àlvarez i Capilla
9650e3c352 Fix oobread segfault in java arith8.class ##crash
* Reported by Cen Zhang via huntr.dev
2022-02-07 23:58:09 +01:00
Sergi Àlvarez i Capilla
79b39bb54d Fix java oobread in id_000000,sig_06,sync_m1,src_000048 ##crash
* Reported by Cen Zhang via huntr.dev
2022-02-07 23:58:09 +01:00
pancake
48829c64b8 Update to the latest capstone 2022-02-01 10:37:01 +01:00
pancake
50bf4d5918
Simplify meson logic and use ole's PR to fix Windows ##build
* Kudos to @oleavr for reproducing, spotting and fixing the bug!
* Context https://github.com/mesonbuild/meson/pull/9918
2022-01-31 23:54:00 +01:00
Sergi Àlvarez i Capilla
595650c0cb Upgrade to a working capstone 2022-01-28 12:21:35 +01:00
pancake
54b1fcd23c
Add CI job to verify builds with system-wide capstone ##build 2022-01-26 09:49:36 +01:00
Sergi Àlvarez i Capilla
d812a78e2a Use system capstone if available in sys/install.sh ##build 2022-01-24 14:38:58 +01:00
Sergi Àlvarez i Capilla
dc60f57748 Fix #15497 - Don't pull capstone when using the system one 2022-01-24 07:10:22 +01:00
Sergi Àlvarez i Capilla
253d24df61 Update to the latest capstone 2022-01-24 07:10:22 +01:00
pancake
4884287b81
Update to the latest thread-friendly sdb 2022-01-18 19:25:08 +01:00
pancake
f2995c2949
Introduce r_strf and stop using sdb_fmt ##util 2022-01-18 18:35:31 +01:00
Sergi Àlvarez i Capilla
5bdc32053d Use the working commit from capstone 2022-01-10 14:32:39 +01:00
Sergi Àlvarez i Capilla
084064bdf1 Fix oobread transfering large packets via qnxr 2022-01-09 21:41:25 +01:00
pancake
24ece3a757
Remove uaf patch for csv5 (upstream is good again) 2022-01-09 19:48:35 +01:00
pancake
fb0ec6ed00
Use stdint like if there was no yesterday ##refactor
* stdint is needed to build r2, so there's no need to keep using
  those weak basic types anymore, and we can just alias them
2022-01-09 19:48:16 +01:00
Sergi Àlvarez i Capilla
75f813a4a9 Update tests and help about asm.leahints -> asm.hint.lea 2022-01-07 00:56:27 +01:00
Sergi Àlvarez i Capilla
478c7d2d1d Fix capstone v5 regression 2022-01-07 00:56:27 +01:00
Sergi Àlvarez i Capilla
6ba2de54f7 Update to the latest capstone 2022-01-06 22:55:00 +01:00
Lazula
ea630ca19f Kill HAVE_EPRINTF, replace with ifndef eprintf 2021-12-25 09:16:49 +01:00
pancake
575c26f329 Fix some format string warnings in the mingw ci job 2021-12-21 00:31:28 +01:00
pancake
e6f2cd0b2a
Remove trailing spaces (#19460)
$ git grep ' $' | grep -v ^test/ | cut -d : -f 1 | sort -u > /tmp/trailing
$ for a in `cat /tmp/trailing` ; do sed -i -e 's/ *$//' $a ; done
2021-12-02 17:39:59 +01:00
Sergi Àlvarez i Capilla
e1efe7370f Update capstone 2021-12-02 11:25:18 +01:00
pancake
4327d8322f
Bring back the mingw32 builds ##windows
* Massage conflicting function signatures spotted by mingw
* Fix the spp visibility issue
* Enable 32 and 64bit mingw builds in the CI
2021-11-28 22:10:51 +01:00
pancake
31ec16fc60
Use more join_paths in shlr and sdb 2021-11-14 23:30:46 +01:00
pancake
b1894dfcf7 Revert "Fix capstone regression by reverting the offending patch (#19402)"
* This reverts commit ff68f178b7.
* Because the offending commit has been reverted in capstone after reporting
2021-11-14 18:04:33 +01:00
pancake
3e032073a3
Fix null name maps, workaround msvc-asan compiler crash and acp/utf/wchar fixes for w32 2021-11-14 00:50:54 +01:00
pancake
ff68f178b7
Fix capstone regression by reverting the offending patch (#19402)
* (from the v5 branch) 6a779ab7500f8606845ffa7a62606b284876aee8
2021-11-13 20:21:26 +01:00
pancake
07a4b25adc Dont sync capstone all the time 2021-11-05 10:08:23 +01:00
pancake
9dbadb0ac1
mv shlr/heap into libr/include/heap (#19285) 2021-10-22 14:56:34 +02:00
pancake
6161fcd798
Use proper naming and location for the w32 debugger wrapper api (#19271) 2021-10-21 12:08:10 +02:00
pancake
e8d4e5cc9f
Fix the windows build regressions 2021-10-19 22:17:47 +02:00
pancake
fdde9caaad
Fix builds issues on meson, windows, ios, static and wasi 2021-10-19 20:57:19 +02:00
Sergi Àlvarez i Capilla
97e9ae5014 Fix nonwindows builds 2021-10-19 13:00:12 +02:00
pancake
3548e2e8a4 Final mingw fixes 2021-10-19 12:52:00 +02:00
pancake
93f6b4cd3b
Initial work towards supporting mingw32/64 again ##build 2021-10-18 23:58:16 +02:00
Sergi Àlvarez i Capilla
5a037ddc0e Update www/t 2021-10-05 10:28:56 +02:00
pancake
704bf823d1
Cleanup and boolify some more debug apis ##refactor 2021-10-04 20:56:34 +02:00
pancake
c546b71ab1 Update sdb dependency to fix a gcc10 warning in sdb_itoa 2021-09-20 06:29:11 +02:00
pancake
581cceb0ef
Update to the latest sdb (#19073) 2021-09-13 00:33:48 +02:00
pancake
17e478ce40 Remove somewhat useless -Dmips=mips 2021-08-27 10:27:38 +02:00
M. George Dan
c25595a767
Fix gdb reg parsing and gdb 'G' reg writing issues ##debug 2021-08-27 02:56:00 +02:00
pancake
3c416c54cc
Fix meson build and proper use of cgen ##build (#18920) 2021-07-21 17:22:39 +02:00
pancake
d1d9f7f774
Initial import of the arm64v35 disassembler and analysis plugins ##anal (#18753) 2021-07-15 12:08:41 +02:00
pancake
f8b00a57df Remove mandatory assert from gdbclient 2021-07-13 00:37:42 +02:00
pancake
46068b1625 More portability build fixes 2021-07-07 20:09:55 +02:00
pancake
469818b616 Fix last covs (minor memleaks) 2021-06-29 10:44:27 +02:00
pancake
6c6d0b9337
Update to the latest SDB (#18863) 2021-06-28 09:42:52 +02:00
pancake
635fad4eb9 Performance improvements to the webui 2021-06-25 14:34:43 +02:00
pancake
2e417ee938
Initial support for capstone-less compilations ##build 2021-06-21 17:48:00 +02:00
pancake
87b39b0952 Update to the latest sdb (better error handling in sdb-text and wasi support) 2021-06-21 01:24:36 +02:00
pancake
57a9bfd9da Fix iOS build regression 2021-06-21 01:18:57 +02:00
pancake
7c14bac05b
Add initial support for building r2 on WASI ##build 2021-06-20 17:14:43 +02:00
pancake
b545c72017
Better handling of HAVE_SYSTEM, PTY, FORK, DYLINK and THREADS ##build 2021-06-10 13:52:29 +02:00
pancake
83f590bee3
Fix the last issues spotted by coverity (#18787) 2021-05-31 22:04:51 +02:00
pancake
dac25ce8de
Update SDB with latest cleanups in sync with r2 2021-05-30 23:04:09 +02:00
pancake
6a96020d5f
memleaks are morally superior to double frees 2021-05-30 10:28:27 +02:00
pancake
b57950daf9 Update SDB 2021-05-30 09:16:23 +02:00
pancake
5b277867e1 Update sdb one more time 2021-05-29 03:02:07 +02:00
pancake
212f2345ba Update SDB again to fix the remaining 80 bytes leaked 2021-05-28 16:55:25 +02:00
pancake
be3ab791d0
Fix the infamous 160 byte memory leak in sdb (#18772) 2021-05-28 16:38:23 +02:00
pancake
23ad9b50ee
Fix #12335 - ignore system-installed r2 includes ##build 2021-05-28 00:45:48 +02:00
pancake
46ec83c5a0
Add use_cgen meson option ##build (#18766) 2021-05-27 23:56:28 +02:00
pancake
f0cea42855
Update sdb again to fix the missing gperf warning (#18761) 2021-05-27 18:31:29 +02:00
pancake
d80476b698
Update SDB: Use the thin cgen instead of gperf (#18752) 2021-05-25 16:14:35 +02:00
pancake
a4b80d0b25 commandline -> command-line 2021-05-25 10:51:18 +02:00
pancake
ab9ef5a3d0 Update sdb 2021-05-21 11:46:04 +02:00
pancake
c3953d64d6
Use gperf on anal/d and improve build and checks ##anal
* Add --without-gperf configure flag
* Update sdb to support gperf.foreach and faster ls.sort()
* Support cc and types sdb gperfs
* add r_str_newvf
* Honor HAVE_GPERF in more places
* Add CI job to build and test cmds with gperf
2021-05-20 00:22:20 +02:00
pancake
6f55c6c49a
Update capstone-v4 (#18712) 2021-05-19 23:05:41 +02:00
pancake
82b4e82b0d
Update capstone v4/v4 - fix meson patch list (#18686) 2021-05-13 03:01:28 +02:00
pancake
a8b13483af Fix another bound for dex 2021-05-11 23:41:47 +02:00
pancake
64bf791bfc
Update mpc from git and add the mpc-sync target (#18673)
Co-authored-by: pancake <pancake@nopcode.org>
2021-05-11 11:46:45 +02:00
pancake
08a8ab6eee
Use gperf in util/charset (#18672)
Co-authored-by: pancake <pancake@nopcode.org>
2021-05-11 11:21:02 +02:00
pancake
7546f34e57
Update sdb and use of SdbGperf in asm.d ##asm 2021-04-25 02:31:46 +02:00
pancake
2434c3ca74
Switch to Capstone5 as default ##asm (#18127)
* Add riscv for capstone5 in the meson
* Report capstone version in the asm plugins
* Many changes in the ppc analysis, seems like it's improved, (emulation quality and xrefs)
* Update all tests and report issues in capstone4 to upstream
* Fix-x86-16 test marked as broken as it needs better fix
2021-04-24 22:04:51 +02:00
pancake
cbc949c039 Remove tree-sitter and the r2-shell-parser ##shell
* Will be reimplemented soon with a new parser
* Simplifies and speedup the build
2021-04-24 21:58:09 +02:00
pancake
402051f66e Fix uninitialized variable bugs in libzip 2021-04-21 12:45:34 +02:00
pancake
71dc8b715c
Move shlr/ptrace-wrap into libr/io, simplify build (#18587) 2021-04-16 19:19:56 +02:00
pancake
23b838a0a9
Remove all the travis and codecov reminiscenses (#18585)
* Codecov and Travis scripts were disabled on January
2021-04-16 17:56:50 +02:00
pancake
7b49d06713 Remove unexistant r_flag_color() and mention iaito instead of r2cutter in pdcj 2021-04-15 01:15:09 +02:00
murphy
60290f8629 Fix 1446544 Argument cannot be negative 2021-04-13 20:09:33 +02:00
murphy
4bef13edc3 Fix 1446545 Resource leak 2021-04-13 20:09:33 +02:00
pancake
476efd4d2f Improve error reporting in winkd:// 2021-04-10 23:43:24 +02:00
pancake
1e0f8e1841 Move shlr/tcc into libr/parse/c ##build 2021-04-10 00:47:49 +02:00
pancake
4a04583bb3 Fix static builds with meson (duplicated tcc symbols) 2021-04-10 00:47:49 +02:00
pancake
530c737d5d
Fix incorrect use of non-const strings and fiz zousans of warnings (#18544)
Co-authored-by: pancake <pancake@nopcode.org>
2021-04-06 12:45:19 +02:00
pancake
87fe959e26 Update sdb 2021-04-04 17:38:25 +02:00
pancake
4c8aa2bf2e
Fix last covs I got by mail (#18531) 2021-04-03 03:50:08 +02:00
pancake
bd0b0be77b
Two coverity findings less 2021-03-30 00:56:04 +02:00
pancake
a7c08c15ce Don't scream out WARNINGs, capitalizing it is enough 2021-03-19 11:02:54 +01:00
pancake
73f220f22d Update doc/license for more clarifications ##build
* Orphaned shlr/arm/omap3430 script moved to extras
* Unified json format for r2 -Lj
* Update QNX io plugin to GPL until clarified with the author
2021-03-17 12:56:38 +01:00
pancake
894bc43ea9 Use more r_str_ncpy and improve it to not alloc beyond nullbyte ##api 2021-03-15 02:24:16 +01:00
pancake
7ff2673dd9
Random uninitialized variable uses fixups (#18453) 2021-03-15 02:23:39 +01:00
Alexis Ehret
f48729acd5 Random null deref and more size_t fixes 2021-03-15 01:48:59 +01:00
pancake
f6c4a9a250 Update capstone-next commit 2021-03-11 20:58:24 +01:00
pancake
fa7789969c
Update capstone5 branch (#18422) 2021-03-08 01:08:49 +01:00
pancake
ee3afa01c9 Fix debian32 in CI ##build 2021-02-27 01:01:22 +01:00
pancake
9e00eeda5c
Add meson -Dplugins=a,b,c to build only the specified plugins ##build (#18372)
Co-authored-by: pancake <pancake@nopcode.org>
2021-02-20 14:45:20 +01:00
Murphy
c66bc44bcc Add missing images for /m ##webui 2021-02-10 23:58:06 +01:00
pancake
bd02bfd5c5
Update to sdb-1.7.0 (#18337) 2021-02-08 22:21:56 +01:00
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
Zi Fan
2dfa75cc47
Update record & replay features to trace reg/mem changes ##debug (#17127)
* Update record & replay features to trace reg/mem changes ##debug
* Support tracing in r_debug_continue_kill ##debug
* Fix error writing registers when stepping back and refactor ##debug
* Implement checkpoints for reverse debugging and make tests green ##debug
* Add `dbg.trace_continue` option to enable/disable tracing every instruction when continue
* Fix continue when tracing to allow skipping and continuing ##debug
2020-07-27 12:54:33 +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
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
Riccardo Schirone
f8cafe4f2f
Update spp to 1.2.0 (#17243)
* Update spp to 1.2.0
* Make sure to use USE_R2=1 when compiling spp
2020-07-09 17:20:06 +08:00
Riccardo Schirone
04074845e4
Update tree-sitter to 86a5dabbcbdac650c53a889183bf56d7e721e09e (#17244) 2020-07-09 12:03:32 +08:00
pancake
f91f2ac1d8
Update capstone git commits for v4 and next branches (#17215)
Co-authored-by: pancake <pancake@nopcode.org>
2020-07-06 12:12:00 +08:00