Commit graph

8 commits

Author SHA1 Message Date
Khairul Azhar Kasmiran
c1fc1419e4
Rename some rz_list funcs to rz_list_XXX_val (part 1) (#5671)
* Rename rz_list_find_ptr() to rz_list_find_val()
* Rename rz_list_delete_data() to rz_list_delete_val()
2025-12-25 22:01:49 +08:00
Rot127
a83cfc5887
Fix UB if two numbers were added which over or underflow. (#5217) 2025-06-24 16:13:09 +00:00
Siddharth Mishra
73ce3bf1dd
librz/analysis: add force function rename API (#4703)
* Force Function Rename

New function to forcefully rename a function. Multiple retries will be
performed by adding a numeric suffix to function name until the number
of retries max's out

* Improve Force Rename & Add Tests

* Add RZ_NONNULL to Function Declarations

* Add RZ_BORROW To Force Rename

* Apply Suggested Edits & Improve Tests

The whole point of force rename is that simple rename op might fail, so
I added a test to make sure it actually fails when we need it to...
hence the need for existence of force rename

* Free Variables & More Checks Added To Tests

* Check Full Name Of Renamed Function

Instead of just checking whether the starting of function matches with
expected name, check the complete name to be exactly same.

* Change Documentation Style
2024-11-08 09:01:25 +08:00
Giovanni
db1e4993a0
Replace strdup with rz_str_dup (#4634) 2024-09-15 19:12:07 +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
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
Giovanni
ef0ed21d9f
Convert basic block into RzPVector (#4349)
Co-authored-by: HN026 <plancksconstant01@gmail.com>
2024-03-10 15:59:15 +08:00
wargio
69c2a4b92d Move librz/analysis int librz/arch 2024-03-07 18:38:49 +08:00
Renamed from librz/analysis/function.c (Browse further)