Commit graph

29164 commits

Author SHA1 Message Date
Giovanni
94099b860e
Add RzIL info to rz-asm -L and La (#4369) 2024-03-18 21:16:13 +08:00
Khairul Azhar Kasmiran
547732cd58
$: Refactor out code for $* and $** (#4368) 2024-03-17 21:23:13 +08:00
08A
e1a69d325f
Update copyright information of 08A (#4367) 2024-03-17 10:21:08 +08:00
pelijah
d43bb152df
buf_format(): parse format string only once (#4365) 2024-03-17 10:18:56 +08:00
Florian Märkl
14238ac591
Fix potentially invalid memcpy in xtensa (#4360)
Regression from bde374dad6:
When memcpy is a macro (e.g. on macOS <= 10.12), the commas are
interpreted as macro argument delimiters. Since length_table is never
mutated, we can revert the change and use it as a constant buffer.

Partially addresses #4352
2024-03-16 12:38:45 +01:00
pelijah
2195bbc472
Fix memleak in rz_bin_file_compute_hashes() (#4364) 2024-03-16 18:40:40 +08:00
Rockrid3r
6b20aeff86 added RZ_BORROW 2024-03-16 08:56:50 +00:00
Rockrid3r
b5a703fbc3 fix memory leaks in path_walker 2024-03-16 08:56:50 +00:00
Rockrid3r
72a15b6397 added docs to path_walker_*, RZ_NONNULL, RZ_OUT, rz_return_val_if_fail, etc. 2024-03-16 08:56:50 +00:00
Rockrid3r
f15f17b806 clang-format 2024-03-16 08:56:50 +00:00
Rockrid3r
6f1de19e04 Updated documentation for rz_type_parse_string_single. Removed remaining comments 2024-03-16 08:56:50 +00:00
Rockrid3r
12ddaa8a27 removed empty lines & comments 2024-03-16 08:56:50 +00:00
Rockrid3r
83d661a0b7 removed unnecessary debug output 2024-03-16 08:56:50 +00:00
Rockrid3r
0920d2641d using rz_str_ndup and rz_num_math 2024-03-16 08:56:50 +00:00
Rockrid3r
f64b2f3d26 removed unnecessary offset setup 2024-03-16 08:56:50 +00:00
Rockrid3r
8bfd35045d addressed some errors 2024-03-16 08:56:50 +00:00
Rockrid3r
ae0afa109c fix path_walker & add unit tests for offset_by_path 2024-03-16 08:56:50 +00:00
Rot127
c78eff25a3
Work around for https://github.com/google/sanitizers/issues/1716 (#4362)
The Thread Sanitizer of ASAN doesn't seem to support
randomized offsets from the VMA base address (`vm.mmap_rnd_bits`)
if they are larger than 28 bits.

This leads to ASAN compiled binaries to crash or endless loop
with a `AddressSanitizer:DEADLYSIGNAL` before main is reached.

Reference issues:
https://github.com/google/sanitizers/issues/1716
https://github.com/google/sanitizers/issues/1724
2024-03-16 13:45:51 +08:00
مصطفي محمود كمال الدين
672d0f78cf
Remove global variables, replacing it with a state structure (#4343) 2024-03-12 12:01:06 +08:00
Giovanni
dba5cc59a9
Add dcco: Continue until call (use step out) (#4354)
Co-authored-by: gogo <gogo246475@gmail.com>
2024-03-12 08:19:56 +08:00
Giovanni
ea66c5f370
Remove rz_analysis_get_fcns since dups rz_analysis_function_list (#4353) 2024-03-11 10:03:57 +08:00
Giovanni
461a2fed87
Remove rz_pvector_index_ptr (#4351)
Unlike rz_vector_index_ptr, which is very important, there do not seem
to be any valid usages of rz_pvector_index_ptr in rizin, cutter or
rz-ghidra that could not be replaced by rz_pvector_at.
In case there will be a use-case for it in the future, it can also be
done by rz_pvector_data(...) + i.
2024-03-10 18:40:26 +01:00
Giovanni
c17881ba2f
Initialize RzAnalysisOp properly. (#4350) 2024-03-10 18:26:10 +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
Giovanni
c7ddd77546
Remove rz_list_get_top/bottom & rz_list_get_head/tail_data (#4348) 2024-03-09 18:24:23 +08:00
billow
30eef53291 dwarf: refactor
- Remove dwarf's dependency on RzBuffer

- Delete `cdwarf.c` and move dwarfdump (`id`) related functions to their respective modules

- Improved output of dwarfdump (`id`)

- add more DW_AT*

- fix escape

- fix debuglink

- remove cache in RzBinDwarfStr

- replace `rz_bin_dwarf_rnglists_parse_at` with `rz_bin_dwarf_rnglists_get`

- remove rz_bin_dwarf_loclists_parse_at

- fix logging

- cache all escaped strings
2024-03-09 09:41:13 +08:00
billow
cae54ff8d9 uleb128: fix sign extend in read_i{32,64}_leb128 2024-03-09 09:41:13 +08:00
pelijah
fd09ff9872
Fix memleak in rz_core_bin_apply_symbols() (#4346) 2024-03-08 16:26:02 +08:00
Huzaifa
2c85412a50
Rz-find -E "filename" to execute command on match (#4200) 2024-03-08 13:49:04 +08:00
wargio
05ab831b9a Fix codeowners and labeler 2024-03-08 12:33:07 +08:00
wargio
5f3af7deee Fix build with capstone v4 and v5 and disable hacks for v6 2024-03-08 12:33:07 +08:00
Giovanni
64f8a5ae57
Move parse into arch. (#4342) 2024-03-07 23:50:22 +08:00
wargio
0de960d891 Ignore python R1737
This ignores warning 'yield from' directly instead of yielding
each element one by one (use-yield-from)
2024-03-07 18:38:49 +08:00
wargio
d6fc5845aa clang format files that previously were incorrectly excluded. 2024-03-07 18:38:49 +08:00
wargio
d2f0c13fc1 Removed empty files. 2024-03-07 18:38:49 +08:00
wargio
3da17d431f Fix license linter 2024-03-07 18:38:49 +08:00
wargio
d47ceedbd3 Merge rz_asm and rz_analysis into one library but keep deprecated apis.
The tms320c64x has been merged into tms320.
2024-03-07 18:38:49 +08:00
wargio
69c2a4b92d Move librz/analysis int librz/arch 2024-03-07 18:38:49 +08:00
wargio
ec32a8fc75 Move librz/asm int librz/arch 2024-03-07 18:38:49 +08:00
Khairul Azhar Kasmiran
29f9c8a9da
Update tree-sitter to 0.21.0 (#4338) 2024-03-06 20:42:39 +08:00
pelijah
6e81378f85
Fix memleak in rz_bin_string_database_new() (#4336) 2024-03-06 12:10:17 +08:00
Khairul Azhar Kasmiran
d3c05ca730
Use npx instead in rzshell build insns (#4331) 2024-03-05 22:04:47 +08:00
Rot127
de1b126b5d
Disable PCRE2 JIT for Darwin (#4329) 2024-03-05 17:07:07 +08:00
مصطفي محمود كمال الدين
f0643cc1e3
sdb: remove unnecessary insertkeys parameter and dead code (#4328) 2024-03-05 08:28:02 +08:00
Khairul Azhar Kasmiran
4bf58dfb95
Remove rz_core_autocomplete prototype (#4327) 2024-03-04 22:38:25 +08:00
Anton Kochkov
3f7a8d382d type/format: do not read float unless asked to 2024-03-03 20:42:21 +08:00
Anton Kochkov
660146d520 type/format: fix union format generation 2024-03-03 20:42:21 +08:00
Peiwei Hu
b8ddd4df67
Fix the PageUp and PageDown in graph mode in Vv (#4321) 2024-03-03 13:56:11 +08:00
billow
4a0dca6613
java: fix java_class_parse (#4318) 2024-03-03 13:45:48 +08:00
Khairul Azhar Kasmiran
573aee5633
$: Revert code changes in #4293 (#4323) 2024-03-03 13:40:17 +08:00