Commit graph

29176 commits

Author SHA1 Message Date
Matt Davis
1d9ae2a381
Support for assembling slti instructions. (#4508) 2024-05-23 13:49:02 +08:00
wargio
bce7bd76c1 Refactoring rz-test to use thread safe functions. 2024-05-22 22:27:41 +08:00
wargio
0558dfab1e Moved unix static vars into struct. 2024-05-22 22:27:41 +08:00
wargio
28c691651f Moved windows static vars into struct. 2024-05-22 22:27:41 +08:00
Khairul Azhar Kasmiran
84e63af3d2
rz_core_task_join: Return fine-grained error values (#4505) 2024-05-22 12:03:35 +08:00
timiv
c7464ab983
Support ARM ELF THM_PC22 / THM_JUMP24 relocs (#4503)
* Support ARM ELF THM_PC22 / THM_JUMP24 relocs

This revision adds proper support for the following ARM ELF relocations:

- RZ_ARM_THM_PC22
- RZ_ARM_THM_JUMP24

These require a rather special encoding as some bits of the relative
offset are encoded in a non-common fashion.
2024-05-21 07:12:32 +08:00
Anton Kochkov
4ead42d9c4
flags: new fdt command to print more information about flag (#4502) 2024-05-19 18:09:02 +08:00
billow
14e97874a3
pic: add RzIL uplifting (#4322)
- Add uplifters
- Add memory maps for different devices in PIC16F family
- Fix pic18 register mapping
- Fix pic18 asm
- Detect pic arch
- Add pic_archinfo
- Extract ESIL uplifting to a separate file
- Support RZ_ANALYSIS_OP_MASK_DISASM
- Add pic18 emulateme test
- Add pic16 emulateme test

---------

Co-authored-by: brightprogrammer <bshock665@gmail.com>
2024-05-19 12:17:53 +08:00
Khairul Azhar Kasmiran
d9a10a98cf
Fix ne fuzz tests (#4501) 2024-05-18 21:12:08 +08:00
Khairul Azhar Kasmiran
c082ae82ae
Fix bin_elf import & symbol leak (#4490)
* Fix bin_elf import & symbol leak
* Allow bin plugins to set custom relocs free
2024-05-18 19:10:58 +08:00
pelijah
e4958fc146
Add rz prefix to set types/APIs (#4499) 2024-05-18 11:37:31 +03:00
pelijah
9c34738977
Remove SdbList (#4496) 2024-05-17 19:23:04 +08:00
Peiwei Hu
7a767f27c0 Remove global variables in visual view mode
* add new strcut RzCoreVisualView to store old global variables
* move some variables related to visual view in RzCoreVisual to RzCoreVisualView
2024-05-17 18:06:50 +08:00
Peiwei Hu
48c2c5f287 Add file percentage in visual mode (V/Vv) 2024-05-17 18:06:50 +08:00
pelijah
01203509ff
Add extended insert/update methods for HT (#4489)
* Return more info from HT insert/update methods

* Fix bug with tracking

* More doc comments

* Update tests

* Separate extented insert/update methods

* Reuse code

* Update docs

* Fix insert_update() usage

* Rehashing -> modification

* Trigger buckets reallocation

* Return enum
2024-05-17 18:06:01 +08:00
Khairul Azhar Kasmiran
a6d4a6bd02
Fix dbg_dmh test based on libc6 2.35-0ubuntu3.7 (#4495) 2024-05-16 21:31:40 +08:00
pelijah
fdc3369e8c
Remove unused sdb ptr API (#4492) 2024-05-16 07:08:40 +08:00
pelijah
e9221853fc
Refactor rz_core_theme_list() to return RzPVector (#4486)
* Refactor rz_core_theme_list() to return RzPVector
* Rename to rz_core_get_themes()
* Use switch in rz_core_theme_nextpal()
2024-05-12 18:49:07 +08:00
pelijah
706a6bf6c2
sdb: remove unused cas and expire features (#4487) 2024-05-12 18:27:54 +08:00
Khairul Azhar Kasmiran
0a05e42240
Add note regarding rz_bin_reloc_free and bin_coff (#4488) 2024-05-12 15:25:46 +08:00
Khairul Azhar Kasmiran
524119c017
rizin: Remove -Q flag (#4468) 2024-05-11 22:48:05 +08:00
pelijah
0979c24046
Fix bug in function_children_parse() (#4485) 2024-05-11 20:37:25 +08:00
Khairul Azhar Kasmiran
d321ece6fa
Fix dbginfo double free under -q (#4484) 2024-05-11 20:17:35 +08:00
pelijah
ca2bbc076c Refactor rz_bin_pe_get_libs() to use SetS and RzPVector 2024-05-11 08:09:59 +08:00
pelijah
61c8074cbf Add set_s_to_vector() API 2024-05-11 08:09:59 +08:00
Khairul Azhar Kasmiran
e80c45038a
Fix hexagon double free under -q
This is a cherry-pick of rizinorg/rz-hexagon@d24f455204 done by hand.
2024-05-10 19:47:48 +08:00
Peiwei Hu
416fc1e13f
core/canalysis.c: fix the ignored parameter in rz_core_analysis_function_signature_editor (#4481) 2024-05-09 12:27:50 +08:00
pelijah
d78fee37f2
Use HtUP instead of SdbHt in bin_xnu_kernelcache.c (#4480) 2024-05-08 07:31:31 +08:00
pelijah
02990d7291
Fix NULL dereference in rz_io_resize() (#4479) 2024-05-07 20:50:37 +08:00
pelijah
4594027f8b
Remove unused sdb hook feature (#4478) 2024-05-07 18:05:09 +08:00
pelijah
f818ca4296
Refactor sdb_foreach and related APIs (#4471)
* Refactor sdb_foreach and related APIs
* Strengthen bounds check in sdb_dump_next()
* Switch to RzPVector
* Use length info in filter_noreturn()
* Fix cmp function
* Remove unused sdb_like() API
* Pass SdbKv to SdbForeachCallback
* Add sdbkv_dup_value() helper
2024-05-07 07:57:52 +08:00
Khairul Azhar Kasmiran
2efd34a305
rz_core_task_join: Return true on join (#4474) 2024-05-06 21:10:43 +08:00
pelijah
57f1070726
Fix double free issue in bin_le (#4473) 2024-05-06 07:01:26 +08:00
pelijah
464f5bbb95
Fix double free issue in bin_luac.c (#4472) 2024-05-05 21:52:30 +03:00
Khairul Azhar Kasmiran
e283bda5de
Fix debuginfod test timeout under -q (#4470) 2024-05-05 10:41:12 +08:00
billow
a420733022
RzIL: add aezsue to support Step until PC equals given address and output VM changes (#4466) 2024-05-04 09:31:02 +08:00
Heersin
ba780a78dc
Relocation and analysis improvement for Renesas RX (#4461)
* Improve RX analysis of stack pointer
* Add Renesas RX ELF e_flag and reloc type macros
* Add Renesas RX relocation patch and elf_reloc to rz_reloc converter
* Update Renesas RX 'ir-info relocs' cmd test
* Add Renesas RX instruction description sdb
2024-05-01 09:34:52 +08:00
Khairul Azhar Kasmiran
bbbe3c6466
rizin: Clarify that -q runs both -i and -c (#4465) 2024-04-30 23:06:20 +08:00
pelijah
3aaa1bfe4d
Refactor TUI panels and fix several memleaks (#4452) 2024-04-27 19:54:36 +08:00
z3phyr
a7a29f110d
Revert memory leak fix for relocs (#4463) 2024-04-27 17:31:41 +08:00
Anton Kochkov
63d6d93195 debug: fix Android X86 builds 2024-04-27 16:44:21 +08:00
Anton Kochkov
c530cc9cae capstone: update to the latest next 2024-04-27 16:44:21 +08:00
pelijah
b5898d0203
Add rz_pvector_enumerate macro (#4462) 2024-04-27 11:07:06 +08:00
Anton Kochkov
9526b6c0bc
Remove NIOS-II architecture (#4457) 2024-04-24 20:11:17 +08:00
pelijah
c2e0348437
RzIL: add unit-tests for float cmp helpers (#4458)
* RzIL: add unit-tests for float cmp helpers
* Add NaN cases
2024-04-24 20:09:03 +08:00
Giovanni
058a848e43
Error when log file cannot be opened. (#4460) 2024-04-23 18:44:15 +08:00
wargio
e08ceb9bd7 Always check the length of RzVector when accessing the tail elem 2024-04-23 12:07:11 +08:00
wargio
80cd0e9ae5 Always check the length before returning the head or tail 2024-04-23 12:07:11 +08:00
Rot127
34f1a9e7b4
Add rz_log and rz_core_notify functions usable with not-formatted strings. (#4448) 2024-04-22 07:31:37 +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