Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
linux-clang-tests-asan,
linux-gcc-tests-codecov,
capstone-v3,
capstone-next,
capstone-v4,
]
include:
- name: linux-meson-clang-tests
Expand Down Expand Up @@ -144,11 +144,11 @@ jobs:
timeout: 45
cflags: "-Wno-cpp"
allow_failure: false
- name: capstone-next
- name: capstone-v4
os: ubuntu-22.04
build_system: meson
compiler: gcc
meson_options: -Dbuildtype=release -Duse_capstone_version=next --werror
meson_options: -Dbuildtype=release -Duse_capstone_version=v4 --werror
run_tests: false
enabled: ${{ (github.event_name != 'pull_request' || contains(github.head_ref, 'capstone')) && needs.changes.outputs.edited == 'true' }}
timeout: 45
Expand Down
2 changes: 1 addition & 1 deletion doc/PACKAGERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ directories used by Rizin, have a look at options `rizin_sdb`, `rizin_zigns`,
etc. in [meson_options.txt][].

Rizin uses the Capstone disassembly engine and supports versions 3, 4, and 5.
By default we use a custom version of Capstone based on v4 and statically link
By default we use a custom version of Capstone based on v5 and statically link
it into the Rizin executables. Some distributions might prefer that a system
version of Capstone be dynamically linked at runtime. To do this, use the
`-Duse_sys_capstone=enabled` command line option when running `meson`.
Expand Down
2 changes: 1 addition & 1 deletion meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ option('rizin_bindings', type: 'string', value: '', description: 'Path where riz

option('checks_level', type: 'integer', value: 9999, description: 'Value between 0 and 3 to enable different level of assert (see RZ_CHECKS_LEVEL). By default its value depends on buildtype (2 on debug, 1 on release).')
option('use_sys_capstone', type: 'feature', value: 'disabled')
option('use_capstone_version', type: 'combo', choices: ['v3', 'v4', 'next', 'bundled'], value: 'bundled', description: 'Specify which version of capstone to use')
option('use_capstone_version', type: 'combo', choices: ['v3', 'v4', 'next', 'bundled'], value: 'next', description: 'Specify which version of capstone to use')
option('use_sys_magic', type: 'feature', value: 'disabled')
option('use_sys_libzip', type: 'feature', value: 'disabled')
option('use_sys_libzip_openssl', type: 'boolean', value: false, description: 'Whether to use or not system openssl dependency to build libzip')
Expand Down
2 changes: 1 addition & 1 deletion subprojects/capstone-next.wrap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[wrap-git]
url = https://github.com/capstone-engine/capstone.git
revision = a4ae97c08fe8d1489d20d462c370cdeb3231cea5
revision = 798f81420fbe497668a8203ca7ca4fcf62bbae39
directory = capstone-next
patch_directory = capstone-next
4 changes: 2 additions & 2 deletions subprojects/capstone-v3.wrap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[wrap-file]
source_url = https://github.com/aquynh/capstone/archive/3.0.5.tar.gz
source_url = https://github.com/capstone-engine/capstone/archive/3.0.5.tar.gz
source_filename = 3.0.5.tar.gz
source_hash = 913dd695e7c5a2b972a6f427cb31f2e93677ec1c38f39dda37d18a91c70b6df1
patch_directory = capstone-3.0.5
directory = capstone-3.0.5
directory = capstone-3.0.5
4 changes: 2 additions & 2 deletions subprojects/capstone-v4.wrap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[wrap-file]
source_url = https://github.com/aquynh/capstone/archive/4.0.2.tar.gz
source_url = https://github.com/capstone-engine/capstone/archive/4.0.2.tar.gz
source_filename = 4.0.2.tar.gz
source_hash = 7c81d798022f81e7507f1a60d6817f63aa76e489aa4e7055255f21a22f5e526a
patch_directory = capstone-4.0.2
directory = capstone-4.0.2
directory = capstone-4.0.2
2 changes: 1 addition & 1 deletion test/db/analysis/arm
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ pseudo: push (r3, lr)
mnemonic: push
mask: ffffffff
prefix: 0
id: 424
id: 128
bytes: 08402de9
refptr: 0
size: 4
Expand Down
2 changes: 1 addition & 1 deletion test/db/analysis/ppc
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ EXPECT=<<EOF
},
"sign": false,
"prefix": 0,
"id": 594,
"id": 1072,
"opex": {
"operands": [
{
Expand Down
2 changes: 1 addition & 1 deletion test/db/analysis/x86_16
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ EXPECT=<<EOF
},
"sign": false,
"prefix": 0,
"id": 591,
"id": 612,
"opex": {
"operands": [
{
Expand Down
6 changes: 3 additions & 3 deletions test/db/analysis/x86_32
Original file line number Diff line number Diff line change
Expand Up @@ -3277,7 +3277,7 @@ EXPECT=<<EOF
},
"sign": false,
"prefix": 0,
"id": 334,
"id": 1503,
"opex": {
"operands": [
{
Expand Down Expand Up @@ -3787,7 +3787,7 @@ EXPECT=<<EOF
},
"sign": false,
"prefix": 0,
"id": 591,
"id": 612,
"opex": {
"operands": [
{
Expand Down Expand Up @@ -4036,7 +4036,7 @@ mnemonic: nop
description: no operation
mask: ff
prefix: 0
id: 494
id: 510
bytes: 90
refptr: 0
size: 1
Expand Down
4 changes: 2 additions & 2 deletions test/db/analysis/x86_64
Original file line number Diff line number Diff line change
Expand Up @@ -2456,7 +2456,7 @@ EXPECT=<<EOF
},
"sign": false,
"prefix": 0,
"id": 591,
"id": 612,
"opex": {
"operands": [
{
Expand Down Expand Up @@ -3375,7 +3375,7 @@ mnemonic: push
description: push word, doubleword or quadword onto the stack
mask: ff
prefix: 0
id: 588
id: 609
bytes: 55
refptr: 0
size: 1
Expand Down
4 changes: 2 additions & 2 deletions test/db/cmd/cmd_ao
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mnemonic: mov
description: moves data from src to dst
mask: ffffffffffffff
prefix: 0
id: 449
id: 460
bytes: c745f400000000
val: 0x00000000
disp: 0xfffffffffffffff4
Expand Down Expand Up @@ -64,7 +64,7 @@ stackptr: 8
},
"sign": false,
"prefix": 0,
"id": 449,
"id": 460,
"opex": {
"operands": [
{
Expand Down