Commit graph

366 commits

Author SHA1 Message Date
Aditya
b82eadc2e4
Add simple POST-command and changed upload path (remote) (#4106) 2024-01-17 15:17:36 +08:00
Khairul Azhar Kasmiran
036a712f35
Remove work dir change of rz-bindgen plugin test (#4022) 2023-12-05 22:03:28 +08:00
Riccardo Schirone
3ef81c0e12 ci: use default meson even in create-tarball 2023-12-01 23:32:17 +08:00
Riccardo Schirone
1311095ce9 Revert "ci: downgrade Meson to 1.2.3 (#3991)"
This reverts commit 6aeea82800.
2023-12-01 23:32:17 +08:00
Anton Kochkov
6aeea82800
ci: downgrade Meson to 1.2.3 (#3991) 2023-11-21 09:55:29 +08:00
billow
444000416c
Add debuginfod support (#3954)
* Add DEBUGINFOD_URLS support
* Add rz_bin_dwarf_from_debuginfod
* Fix rz_bin_dwarf_attr_addr
* Add test for debuginfod
* Filter empty RzBinDWARF
2023-11-06 23:41:42 +08:00
Anton Kochkov
539f8cb197 Fix macOS CI jobs 2023-11-05 19:10:14 +08:00
billow
9cd67098da
Update db/archos/linux-x64/dbg_dmh dmh allocated (#3956)
* Update `db/archos/linux-x64/dbg_dmh dmh allocated`
* Fix `scr.color` in rz_heap_glibc.h
2023-11-05 17:03:26 +08:00
Rot127
b16471fa53
Remove Capstone 3 (fix CS 4 & 5) (#3934)
* Remove macros checking for CS_API_VERSION 3

* Remove CS 3 from meson_options and subprojects.

* Remove Capstone v3 from CI

* Remove CS_API_VERSION >= 4 checks since always true from now on.

* Add CSv5 workflow to CI.

* Handle ARM pre v6 build errors.

* Fix PPC build errors for CS < v6

* Fix correct macro name

* Remove wrong include.

* Fix fallthrough warning

* Fix getter macros for WB and post-fix flags.

* Fix faulty macro name

* Check for all float extensions for vabs.

* Add return to assert cases.

* Update cs to 46154e8605aaefdcca5fecf4ea88b92db5a40ad3

* Remove cs3 wrap file.

---------

Co-authored-by: wargio <wargio@libero.it>
2023-10-25 18:30:15 +08:00
Riccardo Schirone
19dbb57739 ci: switch to softprops/action-gh-release 2023-10-11 10:01:40 +02:00
Anton Kochkov
71679b0800
Fix CI build 2023-09-26 08:03:54 +08:00
Dhruv Maroo
714c338e0f
Remove designated array initializers in rz_analysis.h (#3876)
* Do not use designater array initializer because MSVC complains
* Add new Appveyor CI test for including C headers from C++ files

    * Need to test whether Rizin headers can be included in C++ when
      using MSVC, needed for Cutter to build successfully
    * Changed the name of `build-cpp` CI job in GitHUb jobs to
      `build-cpp-linux` to make it obvious that it only performs the
      test for Linux
2023-09-26 07:36:40 +08:00
Anton Kochkov
833c59c6eb
Pin Meson to 0.61.5 for old CentOS and Debian (#3887) 2023-09-25 20:29:43 +08:00
Anton Kochkov
ab23bb0bf8
issue template: hide warning message (#3886)
As many reporters do not remove it, make it a comment instead
2023-09-25 17:00:19 +08:00
Anton Kochkov
3278ec77d0
ci: use clang-format from LLVM 16 (#3696)
Co-authored-by: wargio <wargio@libero.it>
2023-08-01 09:11:26 +08:00
Anton Kochkov
b30cd7fc83
Update TinyCC CI job (#3683) 2023-07-21 17:10:25 +08:00
yossizap
4aadd18f7e Set the default capstone version to v5 instead of v4
Co-authored-by: wargio <wargio@libero.it>
2023-07-16 13:22:47 +08:00
Giovanni
b943e1d05f
Ensure the concurrency job group is unique (#3538) 2023-05-30 17:55:08 +08:00
Giovanni
f03e1d5114
Automatically cancel any previous workflow on new push. (#3510) 2023-05-20 13:10:50 +08:00
Riccardo Schirone
8d4c12cf9a Add CI job for testing EXTRA_PREFIX 2023-05-19 16:42:35 +02:00
Anton Kochkov
8ef2d9a6ad Fix Debian Stretch builds 2023-04-26 20:01:47 +08:00
Anton Kochkov
d2de771c3d Use meson setup <dir> instead of meson <dir> 2023-04-26 20:01:47 +08:00
Riccardo Schirone
beedbfc5a1 ci: use default llvm/clang for rz-bindgen task 2023-04-22 21:48:46 +08:00
Anton Kochkov
4c7408a15a Fix Debian Jessie builds 2023-03-27 00:21:26 +08:00
Riccardo Schirone
fb71f36859
doc: add release issue template (#3386) 2023-03-10 08:39:55 +00:00
ajakk
2f9ceb6367
CI: install system capstone dependencies (#3388)
Signed-off-by: John Helmert III <ajak@gentoo.org>
2023-02-21 08:16:39 +08:00
ajakk
2315646570
CI: fix system capstone meson flag (#3383)
Signed-off-by: John Helmert III <ajak@gentoo.org>
2023-02-20 06:52:02 +08:00
John Helmert III
cebd2f3200 CI: add build for building with system capstone
Signed-off-by: John Helmert III <ajak@gentoo.org>
2023-02-20 00:01:15 +08:00
Riccardo Schirone
497c2b2e05
Remove old bash-based rz-pm (#3360) 2023-02-07 18:26:38 +08:00
Riccardo Schirone
c61dd6f7c6
CI: env vars on windows work differently (#3354) 2023-02-06 13:19:54 +08:00
Anton Kochkov
438b56e166
Remove use of deprecated set-output in GHA (#3346) 2023-02-05 18:06:53 +08:00
rizan21
cc18d675e6 Use clang-format 15 instead of 14 2023-01-25 22:02:26 +08:00
Riccardo Schirone
30f4d77088
ci: add CI for rz-bindgen (#3285) 2023-01-17 07:02:15 +08:00
Anton Kochkov
8ec9529a09
Enable trivial-auto-var-init and unsigned-char GCC flags (#3232) 2022-12-17 15:27:15 +08:00
Khairul Azhar Kasmiran
85d41f5f34
Run debug tests on Ubuntu 20.04 (#3235) 2022-12-10 14:32:41 +08:00
Khairul Azhar Kasmiran
111e912b99
Drop container from gcc-11 ASAN build (#3234) 2022-12-08 09:29:10 +08:00
Khairul Azhar Kasmiran
ea858e6078
Upgrade rz-test CI to ubuntu-22.04 (#3066) 2022-12-04 13:20:12 +08:00
Anton Kochkov
b1f24d5cf3
Fix rz-pipe.go building on CI (#3185)
Co-authored-by: Khairul Azhar Kasmiran <kazarmy@gmail.com>
2022-12-02 20:48:17 +08:00
Khairul Azhar Kasmiran
25c1624f28
For gcc, use ${CC} when setting ASAN_LD_PRELOAD (#3217) 2022-12-01 23:43:42 +08:00
Anton Kochkov
1bda1b573d
Fix old Debian CI builds (#3201)
* Fix old Debian CI builds

* Update GitHub Actions to address NodeJS 12 deprecation
2022-11-24 18:06:12 +08:00
Anton Kochkov
32b97e9117
Update TinyCC commit in GitHub Actions (#3162) 2022-11-07 06:58:28 +08:00
Anton Kochkov
996986dba1
Update GitHub Docker Action due deprecations (#3161) 2022-11-06 12:56:33 +08:00
Anton Kochkov
abeaf973ad
Update GitHub Actions setup due NodeJS 12 deprecation (#3158) 2022-11-05 07:59:19 +08:00
wargio
5955ced7d7 Export Py3.11 2022-11-02 23:56:36 +01:00
wargio
fc2eb3f439 Add checksum to pkgconfiglite to install package via choco 2022-11-01 10:58:16 +08:00
Riccardo Schirone
bd8d23179c ci: fix rz-pipe-{go,python} installs 2022-10-06 11:49:26 +02:00
Riccardo Schirone
34d2cde22d ci: build portable Windows
Before this patch only the vs2019_static Windows build was compiled in
portable mode, however the Windows installer that is part of the release
is based on the clang_cl build. That meant a user installing Rizin on
Windows would get wrong paths when doing `rizin -H`, as those paths
would reference the CI user paths.
2022-10-06 11:49:26 +02:00
Khairul Azhar Kasmiran
b1fb418ca5
Upgrade non-rz-test CI to ubuntu-22.04 (#3062) 2022-10-04 23:04:42 +08:00
Khairul Azhar Kasmiran
ed7a283b6f
Upgrade CI to macos-12 (#3057)
Co-authored-by: Florian Märkl <info@florianmaerkl.de>
2022-10-02 08:53:00 +08:00
Anton Kochkov
31148d57ae Remove stale bot 2022-09-17 13:04:34 +08:00
Dean
59b38e6efa
Add /*<type>*/ comments everywhere (#2986)
Adds /*<type>*/ comments and a linter check from rz-bindgen to enforce
their existence and consistency

Also includes the following fixes made when adding the annotations:
* removed unused intern_table arguments in pyc_dis.c, pyc_dis.h, asm_pyc.c
* removed unused classes argument from place_nodes in agraph.c
* removed unused recurse and recurse_bb functions in canalysis.c
* removed unused vars field from RzPrint struct
* removed unused RzAnalysisType* structs from rz_analysis.h
* removed unused list field from RzEgg struct
* fixed bug in bp_plugin.c where duplication-checking logic iterates over the wrong list
* removed unused q_regs field from RzDebug struct
* removed unused backtrace field from RzDebugPlugin struct
* removed unused classes_list field from RzBinNXOObj struct
* removed unused methods_list and classes_list fields from RzBinZimgObj struct
2022-09-11 13:04:53 +08:00
Anton Kochkov
7dda939146
Update Android NDK to the latest default platform (#3009)
* Update Android NDK to the `android33` platform
* Use `sed` to fix substitute env var in Meson cross file
2022-09-08 12:00:31 +08:00
Florian Märkl
06ee5e3aaf
Replace meson cmake module usage by plain configure_file() (#2948)
As due to https://github.com/mesonbuild/meson/issues/9702 we are not
using the expansion of @PACKAGE_INIT@ anyway, the cmake module provides
little additional value over a plain configure_file().
More importantly, by not using it, we get full support for muon, which
does not implement the cmake module yet.
2022-08-21 22:01:54 +08:00
Khairul Azhar Kasmiran
8983944f1e
Fix path to meson on Mac (#2928) 2022-08-17 20:19:57 +08:00
Anton Kochkov
d8cb8a3ba2
Use GCC 12.x instead of GCC 11.x on CI job (#2874)
Co-authored-by: Khairul Azhar Kasmiran <kazarmy@gmail.com>
2022-08-14 19:45:09 +08:00
Dhruv Maroo
2205f3623f
Use clang-format 14 instead of 13 (#2846) 2022-08-05 23:30:07 +05:30
Khairul Azhar Kasmiran
2166230a9c
Show available memory in Linux ci.yml jobs (#2840) 2022-07-26 20:28:03 +08:00
Florian Märkl
91e48624b5 Add very basic debug tests for macOS
The system.privilege.taskport change in CI could also be simplified without
having to manually edit a plist.
2022-07-17 20:31:32 +02:00
Riccardo Schirone
8939fdbd7d
Use add_global_arguments instead of passing cflags/ldflags all around (#2812)
See also 66a0e22293/docs/TESTING_WITH_SANITIZERS.md (clang)
2022-07-17 21:33:51 +08:00
Anton Kochkov
9ef889400c Add Muon CI job 2022-07-07 18:08:57 +08:00
Giovanni
ea02b0d25f
Remove zignatures and move aaF[l] -> F[al] , zf[sdc] -> F[sdc] (#2682) 2022-06-29 07:49:43 +08:00
Giovanni
648882d544
Add libmspack and add idpx to extracts compressed pdb (#2728)
* Add libmspack, cabextract and add idpx to extracts compressed pdb
* Remove cabextract from CIs since it is not anymore required.
2022-06-27 23:52:07 +02:00
Riccardo Schirone
6f8aec2b3b
CI: install sigdb in static version of rizin (#2689)
* CI: install sigdb in static version of rizin
* RzCore: use bool2status whenever possible
* RzCore: add flirt.sigdb.load vars to select which signatures to load
* test: adjust testing to not consider system/home flirt db
* sign: use a RzSigDb structure instead of a raw list to store signatures
* sign: switch RzSigDb to use a hashtable and avoid duplicates
2022-06-23 10:29:46 +02:00
Riccardo Schirone
0d50ab45c4
build: use llvm-ar on newer Android NDK (#2711) 2022-06-20 18:12:55 +08:00
Anton Kochkov
eb0395494a Migrate CodeQL Action to version 2 2022-06-02 20:06:03 +08:00
Riccardo Schirone
7b56fb1a51 build: Release also windows shared builds 2022-05-25 16:52:03 +02:00
Anton Kochkov
6a46a4c640
Always run ASAN CI jobs 2022-04-13 01:00:26 +08:00
GustavoLCR
f0f0fc1689
Update PR labeler to use official GitHub action (#2525) 2022-04-09 12:35:30 +02:00
Anton Kochkov
f246d7bdc8
Skip debug tests on Alpine and CentOS (#2443) 2022-03-24 23:15:39 +08:00
Peiwei Hu
a0ea1f6f57
rz-test: support exclude directories (#2440) 2022-03-24 16:54:25 +08:00
Riccardo Schirone
d6f8e53735 Ensure that CI tests unit tests without testbins 2022-03-23 10:34:53 +01:00
Khairul Azhar Kasmiran
c4b35acc2e
Increase timeout of linux-gcc-tests-asan build to 2 hours (#2411) 2022-03-15 22:38:50 +08:00
Khairul Azhar Kasmiran
7ede9dfd39
Update libc6 and dbg.maps.count.after.map test (#2403)
* Update `dbg.maps.count.after.map` test
* `ci.yml`: Install latest version of libc6
* `tcc.yml`: Update libc
2022-03-12 19:11:22 +08:00
Khairul Azhar Kasmiran
92439869b8
Run tcc build even if only tests have changed in pr (#2404) 2022-03-12 08:43:08 +08:00
Dhruv Maroo
1532342358 Add --print-errorlogs flag meson test for Windows jobs 2022-03-06 16:54:44 +01:00
Anton Kochkov
5b38d04bfb
Use GitHub mirror for TinyC compiler (#2202) 2022-01-13 21:21:12 +01:00
Riccardo Schirone
6f40dfe493
Move remaining things from shlr/ to meson subprojects (#2126)
* Move binrz meson directives to binrz/ dir

* Move rizin-shell-parser to a subproject

* Move bochs to a meson subproject

* Move rzqnx to meson subproject

* Move winkd to a meson subproject

* Move rzar to a meson subproject

* Move rzw32dbg_wrap to a meson subproject

* Move ptrace-wrap to a meson subproject

* Move rzgdb to a meson subproject

* Rename w32dbg_wrap to rzw32dbg_wrap

* Update CODEOWNERS

* Remove old references to shlr

* Move shlr/heap stuff in core and remove shlr/arm

* Move spp to a meson subproject

* Remove last references to shlr

* Remove use_webui option

* Move include files directives to librz/include/meson.build

* Move librz meson directives into librz/meson.build

* Handle d/ directories inside the specific module meson.build

* Move plugins listing to specific module meson.build

* Move rzheap to its own subproject

* Fix js linter and licenses

* Use meson.override_dependency for all rz_ modules
2021-12-22 09:20:39 +08:00
Riccardo Schirone
47e1cb8335
Provide CMake config files for CMake projects (#2057)
* Remove wrong librz.pc.in file
* Add plugindir variable to .pc files to allow easy plugin configuration
* Add CMake config files to find Rizin in CMake projects
* Add CI jobs to check cmake files
* Provide workaround for mesonbuild/meson#9702
* Use .lib suffix and no prefix on MSVC to make CMake files work
* Disable cmake files on static libraries build
2021-12-17 09:16:25 +00:00
Giovanni
bda1e9cfca
Disable GPL code and Add RISC-V support via Capstone 5 (#2087)
* -Duse_gpl=false is supported by rizin and added riscv_cs for capstone v5
* Added GPL build workflow in CI
2021-12-11 13:30:01 +01:00
Khairul Azhar Kasmiran
d2f649d178
Add --werror to macos build (#2074) 2021-12-06 23:10:33 +08:00
Khairul Azhar Kasmiran
3ad79aaa8c
Update macos builds to macos-11 (#2064) 2021-12-04 21:10:23 +08:00
Khairul Azhar Kasmiran
ffc0b9cf74
Use --werror with Linux Clang builds (#2043) 2021-11-29 22:37:45 +08:00
Khairul Azhar Kasmiran
649f358d2e
Fix clang -Wabsolute-value warning + Trigger linux clang build on clang in branch name (#2042) 2021-11-28 20:03:56 +08:00
Dhruv Maroo
17573c17df Use clang-format-13 for linting
* Update `linter.yml` to use `clang-format-13`
  * Update documentation for clang-format
2021-11-25 15:44:28 +08:00
Khairul Azhar Kasmiran
11d9e5c995
asan builds: Get loc of asan so from env (#2024) 2021-11-25 00:05:48 +08:00
Surendrajat
c5fa5a2d5e
macOS: Update installer background (#1994) 2021-11-19 12:41:35 +01:00
Khairul Azhar Kasmiran
5d42d9d163
Support fuzz tests in asan clang build (#1990) 2021-11-18 00:13:16 +08:00
Khairul Azhar Kasmiran
906ece4211
Add asan build for clang (#1910) 2021-11-17 21:02:02 +08:00
Giovanni
f41ea3c284
[FLIRT] Refactoring and create rz_sign library (#1960) 2021-11-11 20:29:59 +01:00
Rot127
40a6f4ae26
Add request for documentation in the PR template. (#1933)
* Add request for documentation.
* Shorten rizin book note.
* Add exception clause
2021-11-04 12:19:44 +08:00
Giovanni
ce88e7c5bc
Run push only on certain branches (#1905) 2021-10-30 12:23:54 +02:00
Riccardo Schirone
86f6fec835
Add rzshell_which script to look for the handler of a rzshell cmd (#1839)
* remove isort linter on CI
2021-10-19 15:43:11 +02:00
Anton Kochkov
7bbb2d9283
Update GitHub labeler settings (#1823) 2021-10-12 12:07:23 +02:00
Khairul Azhar Kasmiran
f98680aab4
Fix -Warray-bounds warnings in gcc-11 build (#1818) 2021-10-11 22:33:48 +08:00
Khairul Azhar Kasmiran
b80cadf756
Switch to ubuntu:hirsute for gcc-11 build (#1811) 2021-10-10 18:41:05 +02:00
Heersin
e0d3d6bc66
New RZIL integration (#1663)
The new intermediate language is based on the BAP (Binary Analysis Platform) Core Theory.
It operates on SMT-like bitvectors and their arrays to represent values and memory.
Apart from that, it has also representation for the data and code side effects.
2021-10-09 18:14:44 +08:00
Khairul Azhar Kasmiran
4995a22228
Add gcc-11 build to CI (#1802) 2021-10-07 17:07:06 +08:00
Riccardo Schirone
af65352aa1
Move files to generate windows installer under dist/windows (#1765) 2021-10-02 13:53:13 +02:00
Anton Kochkov
272383ce9f
CI: Update autolabeling configuration (#1768) 2021-09-29 12:37:08 +02:00
Riccardo Schirone
618ed4e0a8
Add separate test to check if C++ programs work with Rizin (#1743) 2021-09-24 10:15:59 +02:00