Commit graph

30316 commits

Author SHA1 Message Date
Giovanni
daeee9ac1a
Fix ISO C23 warnings related the usage of strstr & strchr (#6182) 2026-04-08 22:04:39 +08:00
Giovanni
6131a0e187
Fix RZ_IPI usage on public headers & fix memory leak in the ROP code. (#6171)
* Fix RZ_IPI declaration on public api for rz_pdb

* Fix RZ_IPI declaration on public api for jemalloc/glibc

* Fix RZ_IPI declaration on public api for rz_io

* Remove functions from public header for rz_panels

* Fix public functions not following rizin nomenclature in rz_graph

* Fix public functions not following rizin nomenclature in rz_rop

* move resolve_fcn_name into rz_analysis

* Fix public functions not following rizin nomenclature in rz_ascii_table

* Fix leak in rop code

* Rewrite parser for rop

* Add doxygen comment
2026-04-08 13:37:17 +08:00
Farhan Saiyed
9be4c77581
Fix M68K initialization and optimize tests (#6113) 2026-04-08 13:22:05 +08:00
Alok Kumar Mishra
300af08287
librz/util/table: fix shared query filtering (#6166) 2026-04-08 11:48:04 +08:00
Rot127
b11bb9d23a
refactor: add hashtable-based RzGraph implementation (#6152)
* Basic implement of list based and matrix based graph

Add comments

Basic support for list and matrix based graph refactor

Add rz_graph_*_new node and edge API

Modify calling for rz graph edge data

Add dfs and visitor mode

Add new get nth neighbours

Add unit test and wrapper for get edges

Bug fixed and unit test

Solve TODO about better semantic of get nodes

Doc RZ_API and other functions, split impl to new files

[cannot build] remove old graph impl and rename new graph API

* Rewrite and replace agrach, cgraph, drawable_graph, il_graph with new API

* Refactor graph API and fix unit test and multiple leaks

Update Wrapper for graph identifier

Ordered Nodes in graph drawable

Fix icfg and several agraph refactor issues

Use kahn to get topo sort in assign_layers

Introduce khan for assign_layer and find DAG cycle and backedges in algorithm

* Fix self loop and update db test

* Solve request changes

* Fix cbpf db

* Fix test graph warning in testing NULL deletion

* Fix mismatched rz_agraph_compute_layout nonnull

* Fix memleak

* Clean and fix code

* Fix memleak in graph free

* Fix memleak in matrix implement

* Add bindgen doc

* Fix memleak in early exit

* Fix rz-bindgen warning comments

* Make graph structures private.

* Fix Windows C2036

* Fix typo in type annotation.

* Add new type annotations for RzGraph and HtPP

---------

Co-authored-by: Heersin <teablearcher@gmail.com>
2026-04-08 04:01:40 +08:00
SSharshunov
b34c97efe4
librz/bin/luac: fix code to work on big endian machines (#6167) 2026-04-07 23:25:04 +08:00
Giovanni
4ad23db90e
Remove USE_VARSUBS (#6170) 2026-04-07 17:54:43 +08:00
مصطفي محمود كمال الدين
b7c08f4546
add RISC-V to CI using QEMU and Debian kernel, busybox as init (#6029) 2026-04-07 14:55:01 +08:00
Rot127
d7bc9584e2
Fix rz-bindgen build for latest rz_analysis_t refactor. (#6168)
* Move typedef to the top to fix rz-bindgen parsing.

* Fix order of endif (cpp must be second to last).
2026-04-07 03:20:02 +08:00
Rot127
b961360d13
Remove unused declaration (#6165) 2026-04-06 17:58:34 +00:00
Giovanni
b5fee3471c
Move RzAnalysis as private and force usage of C API (#6123)
* Hide RzAnalysis structure to force the usage of the C APIs.

* Fix rop code & test

* Fix linter

* Fix rz_analysis_free to return void
2026-04-06 16:07:53 +00:00
Florian Märkl
995f73b1ad
Add inplace variants for rz_bv_(un)signed_cast() (#6164) 2026-04-06 17:09:05 +02:00
SSharshunov
f007f5f309
Fix leak of CS structs in librz/arch/p/analysis/analysis_riscv_cs.c (#6133) 2026-04-06 11:58:25 +00:00
Mohammed Muqeet Us Salam
c177cce9d4
Add rz_str_replace_regex for regex based string replacement (#6151) 2026-04-06 11:52:52 +00:00
Florian Märkl
babba5f428
librz/util: fix fill_bit in rz_bv_cast_inplace for small vectors (#6163)
Resulting bitvector contents for fill_bit = true were incorrect. In
particular, when extending, the new bits were not set and when
shrinking, the cut off bits were set to the fill_bit, even though they
would be out of range.
2026-04-06 02:46:34 +08:00
Shreyas Sangarshan S
e184f35992
fix: remove windows debugger compilation warnings (#6140) 2026-04-05 16:27:46 +08:00
Farhan Saiyed
c79a077d1c
Add a note regarding verbose mode in benchmark (#6157)
* Workflows run updated

* Adding note regarding verbose mode in benchmarks
2026-04-05 08:20:01 +08:00
SSharshunov
fcfb984235
Luac 5.0-5.5 support (#6142) 2026-04-05 08:12:55 +08:00
Rot127
f84510dc08
Add rz_set_u_take(). (#6137) 2026-04-04 12:04:25 +00:00
Mohammed Muqeet Us Salam
7226d50637
Omitted reflines when internal grep ~ is used (#6062) 2026-04-04 12:03:06 +00:00
Rot127
a1012b5305
Improve performance of rz_bv_set_from_Xt64() at least for the value 0. (#6147) 2026-04-04 12:01:44 +00:00
Khairul Azhar Kasmiran
4848dd9850
Rename cmd_plF test to cmd_pl_capital_f (#6150) 2026-04-04 10:14:22 +00:00
Ehab-24
96ddda19ed
test: enforce bits and endianness in plF tests (#6149) 2026-04-04 16:01:39 +08:00
Giovanni
29803d9e34
Fix implementation of rz_core_analysis_[bytes/op_chunk_iter] (#6145) 2026-04-04 15:32:47 +08:00
Arya H R
f8b945a56d
librz/disasm: remov printing function from public RZ_API (#6143) 2026-04-04 03:06:39 +08:00
Riccardo Schirone
f2f18c4fdd
librz/debug: clean core->dbg fields when rz_debug_use errors (#6138)
* librz/debug: clean core->dbg fields when rz_debug_use errors
* librz/debug: call fini to avoid leaks
* librz/debug: deallocate the current dbg plugin on free
2026-04-04 03:06:05 +08:00
Ehab-24
0b1905f507
shell: add plF unicode RzIL print command (#5936) 2026-04-04 02:57:31 +08:00
Khairul Azhar Kasmiran
dbb6133249
Add const to suitable rz_asm funcs (#6144)
* Add `const` to suitable rz_asm funcs
* Use RZ_STR_ISEMPTY() instead
2026-04-04 00:11:53 +08:00
SSharshunov
7eb9cdfe75
Fix leak in test/unit/test_analysis_op.c (#6134) 2026-04-02 18:36:13 +08:00
MrQuantum1915
75b038d867
Fix missing _64 bit enum checks in analysis_mips_cs.c (#6122) 2026-04-02 15:14:28 +08:00
Khairul Azhar Kasmiran
815c86a8f7
Inline rz_list_iter_set_data() and shorten it to rz_list_set_val() (#6131) 2026-04-02 06:04:54 +08:00
Shessaanand Siva Sivamurugan
7ad49c41c2
hash: add jenkins non-cryptographic hash (#6121) 2026-04-02 01:42:23 +08:00
dependabot[bot]
2fe2696ac3
build(deps): bump codecov/codecov-action from 5 to 6 (#6124)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 5 to 6.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-31 19:40:42 +08:00
cheese-cakee
64a32b8481
bin/nes: implement iH header structure (#6099) 2026-03-29 19:40:00 +08:00
loki
8fcf3e736b
Fix aav.aav.* naming #2205 (#6079) 2026-03-29 17:49:04 +08:00
Khairul Azhar Kasmiran
e0ec191f97
meson: Fix include_directories sandbox violation (#6119) 2026-03-29 17:44:45 +08:00
Rot127
c6d566a44a
Fix failing of workflow if a PR or the base branch has more than 10 commits. (#6117)
I tried several ways to fix this issue more elegantly.
But I either was too stupid, too tired to do it right, or it got too complex.
The script fails because the PR "base" branch and the PR HEAD
have no merge-base commit in the shallow clone Github does.

If a PR has more than 10 commits, the workflow fails because
the fetching didn't get enough commits to reach the merge-base.

Anyways, this is the simple solution.
Fetch 200 commits at once and done.
The workflow will fail if a PR has more than 200 commits
or the base branch has 200+ commits since creation of the
PR. But this rare and almost always requires a rebase
anyways. So this is the simplest fix.
2026-03-29 09:49:03 +08:00
Khairul Azhar Kasmiran
37d35d3d69
appveyor.yml: Install special py packages only on vs2017 (#6114) 2026-03-28 14:58:31 +08:00
cheese-cakee
ca2fd3b954
hash: add xxhash64 algorithm (#6098) 2026-03-28 05:16:44 +08:00
Ayman
1b18421d73
analysis: improve function splitting heuristics for inner functions (#5975) 2026-03-27 15:24:14 +00:00
Khairul Azhar Kasmiran
e1542ed0e5
appveyor.yml: Remove BUILD_DIR (#6110) 2026-03-27 21:03:20 +08:00
Rot127
d8fec294f7
librz/arch: update Hexagon to v81 + HMX Extension (#6041)
* Update to v81
* Add HMX tests
* Add HMX extension instructions.
* Update patterns with more special register names.
* Fix and extend token patterns.
* Regenerate with RzIL
* Add missing extension description.
2026-03-27 13:36:03 +08:00
Rot127
6d50c5ac14
Fix leaks of table (#6106) 2026-03-27 11:25:27 +08:00
Farhan Saiyed
7bfdd4230d
Test optimization of abi/compilers (#6082) 2026-03-27 11:24:51 +08:00
Khairul Azhar Kasmiran
c8f69ceafb
appveyor.yml: Test on APPVEYOR_BUILD_WORKER_IMAGE to reduce repetition (#6102) 2026-03-27 06:07:57 +08:00
Khairul Azhar Kasmiran
30d8d2c3b2
Filter dm/fl@F:maps wrt vvar/vdso size (#6104) 2026-03-27 01:31:46 +08:00
Rot127
e675b5efa6
Fix leaks of keyword list and venv (#6094) 2026-03-26 01:58:42 +08:00
Giovanni
4712c82435
refactor: remove RzAsm struct from the public APIs (#6089)
* Remove RzAsm struct from the public APIs
* Forbid plugins from changing RzAsm contents
* Implement archinfo for RX
* Rename archinfo for SH
* Fix tests to use the new output
2026-03-26 01:57:42 +08:00
Rot127
5d15b1295e
Move get_boundary functions without module dependencies to RzIO. (#5508)
* Add boundary getter tests.
2026-03-25 14:34:07 +00:00
NOT XVilka
e9dd764f87
refactor: remove unused mpc subproject (#6091)
Co-authored-by: Anton Kochkov <anton.kochkov@gmail.com>
2026-03-25 20:30:15 +08:00