Commit graph

22 commits

Author SHA1 Message Date
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
Giovanni
141f05b126
Remove rz_io_read_at and use only rz_io_read_at_mapped (#5777) 2026-01-11 22:50:50 +08:00
Khairul Azhar Kasmiran
c48ab5c667
Make code compilable under checks_level 0 and 3 (#5102)
* Add `rz_goto_if_reached()` to RZ_CHECKS_LEVEL 3
* Fix rz_return(_val)_if_reached() for RZ_CHECKS_LEVEL 0
* Add `rz_goto_if_reached()` to RZ_CHECKS_LEVEL 0
* Set default log level to WARN
2025-05-10 23:29:19 +08:00
Peiwei Hu
8ade9bf833
Fix memory leaks of rz_analysis_xrefs_get_to (#5123) 2025-05-05 21:51:28 +08:00
wargio
4f394a03a6 Fix out of bound read in analysis_objc.c & update gitignore 2024-09-13 12:20:39 +08:00
pelijah
b8ebd5ac42
Add missing vector foreach macros to clang-format cfg (#4456)
* Add rz_vector_foreach to clang-format cfg
* Add other vector foreach macros
2024-04-22 07:16:46 +08:00
Florian Märkl
2cacf880c1
Add missing newlines to some RZ_LOG_* calls (#4439) 2024-04-18 00:04:38 +08:00
pelijah
f2d8e0db3d
Add HtSP, HtSS, HtSU, SetS (#4415)
- All `ht_*_new0()` are removed
- `freefn` field of HT options was renamed to `finiKV`
- `finiKV_user` fields was added to HT options
- Added `ht_*_new_opt_size` API
- `HtSP` and `HtUP` are created with `ValueFree` callback  that allows to reduce extra LOC and prevent bugs
- `SetP` replaced with `SetS` (based on `HtSP`)
- `rz_th_ht_*_new0()` and `rz_th_ht_*_new_opt()` are replaced with `rz_th_ht_*_new(HtXX *)`
2024-04-16 20:27:48 +08:00
Peiwei Hu
3a2148e1cd
Refactor sections in RzBinPlugin from list to pvector (#4089) 2024-01-11 12:19:22 +08:00
Florian Märkl
3c7d4c60c3
Fix arm64 ldr mask in objc_stubs analysis (#3978)
This ldr is "LDR (immediate), Unsigned offset" as described in the ISA
manual. The mask was covering data bits and thus could lead to false
negative matches.
2023-11-15 18:08:34 +01:00
Florian Märkl
8c9568e733 Add analysis for Objective-C selector stubs
aalo is renamed to aalor to make room for the new aalos command, which
analyzes the __objc_stubs section and assigns names to all detected
selector stubs there. The stub patterns currently supported are all that
are hardcoded in ld64 version 820.
This analysis is also run automatically in aaa if the binary is detected
to potentially having such stubs.
To cleanly rename functions which have been created previously at
unnamed stub locations, rz_core_analysis_function_rename() has been
enhanced to not leave behind flags called fcn.0x<offset>.
2023-03-21 19:33:49 +01:00
Paul I
9db3ed0670 Rename RzAnalysisXRefType enum members 2022-05-12 09:24:12 +02:00
Giovanni
0d4d8f5892
Ported aa* commands under newshell (#2594) 2022-05-10 19:07:20 +02:00
wargio
33e8c5b2b8 Resolve 'format not a string literal and no format arguments' 2022-05-03 12:13:22 +02:00
wargio
b86cfeb39a Converted rz_core_notify_* to use C format 2022-05-03 12:13:22 +02:00
wargio
41aa8ec196 Moved rz_print_rowlog/_done to rz_core_notify_begin/_done under rz_core 2022-03-28 09:12:16 +08:00
wargio
f8d2b04a2d Removed analysis.verbose evaluable variable 2022-02-06 12:08:16 +01:00
Paul I
8649bebc54
Replace ref/xref with xref from/to 2021-03-30 15:33:31 +08:00
Anton Kochkov
ef45c0c8e1 Refactor to use API instead of rz_core_cmd 2021-02-22 16:34:32 +08:00
Anton Kochkov
9b747d166a Refactor to use API in visual modes 2021-02-16 01:50:41 +08:00
Anton Kochkov
a0be4e2e64 Run clang-format 2021-01-21 22:05:44 +08:00
Anton Kochkov
ad36954adb
More renames of *anal* to *analysis* (#123) 2020-12-07 13:20:29 +01:00
Renamed from librz/core/anal_objc.c (Browse further)