Commit graph

28549 commits

Author SHA1 Message Date
Rot127
cebe0b5081 Add test for custom bf coloring. 2023-08-04 08:18:51 +08:00
Rot127
dd696b4c4a Add missing in/out mnemonics to token pattern 2023-08-04 08:18:51 +08:00
Rot127
10973de1d3 Compile all pattern at once if it wasn't done before. 2023-08-04 08:18:51 +08:00
Gleb Popov
c6dc4ee906 Make rz_file_path_join prepared for an empty string in the first arg 2023-08-03 15:35:25 +08:00
Gleb Popov
f3667b0963 Introduce rz_core_analysis_cc_init_by_path() that allows specifying a path to cc data. 2023-08-03 15:35:25 +08:00
Gleb Popov
30ba928f54 test/unit/test_analysis_var: Use types DB from the build dir. 2023-08-03 15:35:25 +08:00
Anton Kochkov
fe8ed0bfbe
util: do not unnecessary initialize members of ut128 (#3717) 2023-08-02 22:12:15 +08:00
Anton Kochkov
45f1153d41
unit: test_str compiler warnings fixes (#3716) 2023-08-02 20:46:04 +08:00
Anton Kochkov
775c95b8b3
Fix a typo in ut128 type (#3714) 2023-08-02 18:03:15 +08:00
Rot127
a3eefea988
Asm token documentation (#3711)
* Move compile_token_patterns to asm module.
* Simplify rz_asm_tokenize_asm_regex().
* Implement custom token parsing for bf.
* Add docs about asm token parsing and example implementation.
2023-08-02 11:00:18 +08:00
Giovanni
c0b02cf546
Fix jvm analysis and asm due wrong section address (#3710) 2023-08-01 21:24:57 +08:00
Giovanni
1272933338
fix -M and bin.demangle (#3709) 2023-08-01 19:27:42 +08:00
Riccardo Schirone
bd5268f9aa
core: fix output of pC commands (#3692) 2023-08-01 18:32:24 +08:00
Anton Kochkov
d497840b07
meson: reduce code duplication (#3707) 2023-08-01 16:45:09 +08:00
Parth Bansal
bd0a430e8e
Interactive horizontal histogram for p== commands (#3688) 2023-08-01 12:00:59 +08:00
Anton Kochkov
3278ec77d0
ci: use clang-format from LLVM 16 (#3696)
Co-authored-by: wargio <wargio@libero.it>
2023-08-01 09:11:26 +08:00
billow
8b3a444dbd Add rz_buf_read_ble128 and rz_buf_write_ble128 2023-07-30 16:16:52 +08:00
billow
33dc654265 Add rz_type_db_update_base_type rz_type_func_update 2023-07-30 16:16:52 +08:00
billow
87967ab5b9 Fix rz_vector_index_ptr rz_vector_head rz_pvector_empty 2023-07-30 16:16:52 +08:00
billow
37e1f0aae5 Add rz_read_ble128 2023-07-30 16:16:52 +08:00
billow
34ed8c2aea Fix rz_buf_uleb128 2023-07-30 16:16:52 +08:00
Giovanni
a3ad6221fb
Fix #3647 (#3690) 2023-07-29 16:20:19 +08:00
frmdstryr
c9fe729ce0
Make rz_core_analysis_var_display work with stack vars when debugging (#3687) 2023-07-28 01:40:22 +08:00
Riccardo Schirone
594e5885ab
core: fix 'pxj' command to not use core->block (#3693) 2023-07-27 22:59:46 +08:00
Hertatijanto Hartono
d1fd135df3 Reopening file should not be identified as an error 2023-07-25 11:02:11 +08:00
Anton Kochkov
ba84a920ad Improve parsing C syntax up to C23 2023-07-23 19:04:05 +08:00
Anton Kochkov
dd6c3a6437 Update Tree-Sitter C grammer 2023-07-23 19:04:05 +08:00
Anton Kochkov
fd8086bcc8
Show realname in fl.t table output (#3682) 2023-07-23 13:46:26 +08:00
svr
832e5b0d36
Rewrite LE plugin (#3666)
* Apply relocations, jump tables are detected correctly now
* Use virtual files for patching and relocation targets
* Create continous sections where possible instead of a section per page
* Support for DOS extender bound LE executables
* Support page compression of type 1 (iterated) and 5 (compressed)
* Add support for 16 bit relocations
* Fix numerous issues, leaks, UB, etc
2023-07-22 21:39:30 +08:00
Anton Kochkov
2ec61704c0
Move RzOutputMode to rz_cmd.h (#3672) 2023-07-22 17:48:55 +08:00
frmdstryr
c4cb0d3e59
Move rz_core_analysis_var_display to public api (#3679) 2023-07-21 19:52:45 +08:00
Anton Kochkov
b30cd7fc83
Update TinyCC CI job (#3683) 2023-07-21 17:10:25 +08:00
Anton Kochkov
831c472f09
Improve help for ~: command (#3681) 2023-07-21 14:55:20 +08:00
Anton Kochkov
07747e2ba8
Update rz-libdemangle (#3680) 2023-07-21 13:01:23 +08:00
Anton Kochkov
47701f65b4
Fix fl. commands and add tests (#3678) 2023-07-20 21:17:14 +08:00
Anton Kochkov
f1006f97c2
arm: use cortexm cpu instead of cortex (#3674) 2023-07-20 16:20:04 +08:00
Anton Kochkov
8f1710a403
reuse: fix DEP5 format for multiline copyright (#3675) 2023-07-20 15:29:57 +08:00
Anton Kochkov
d581fc2528
test: remove duplicate dbg.fds.count test (#3673) 2023-07-20 13:33:20 +08:00
Heersin
c0850845f1
RzIL: asm tests for ARM32 VFP and NEON (#3662) 2023-07-20 11:30:17 +08:00
Parth Bansal
0ed81d522b
Add p=r command to display entropy edges (#3671) 2023-07-20 11:21:50 +08:00
Florian Märkl
aa2c54f128
Add support for PT_OPENBSD_NOBTCFI detection (#3663)
OpenBSD enables arm64 BTI or Intel IBT by default, except when the
binary was linked with -Wl,-z,nobtcfi in order to opt-out. In this case,
a PT_OPENBSD_NOBTCFI segment will exist, which we can indicate in the
bin info.
See also https://undeadly.org/cgi?action=article;sid=20230714121907

Original Commit: 4551bf03461595a9645051347ad026974227ac6d

Co-authored-by: pancake <pancake@nopcode.org>
2023-07-18 08:26:21 +08:00
Giovanni
8f2eb45b84
Add bin.demangle.flags to allow users to simplify or not mangled strings (#3659) 2023-07-17 23:31:09 +08:00
wargio
99c5f833c5 Mark as broken the ARM 16 test which fails to disassemble. 2023-07-16 13:22:47 +08:00
wargio
de33b0acc4 Fix v3 build due fall-thru 2023-07-16 13:22:47 +08:00
wargio
3578cbb4fc Improve sparc analysis and fix tests. 2023-07-16 13:22:47 +08:00
billow
e456c60e20 Fix tests for capstone v3/v4/v5
Co-authored-by: wargio <wargio@libero.it>
2023-07-16 13:22:47 +08:00
billow
d20fe00bc8 Fixes capstone update 2023-07-16 13:22:47 +08:00
billow
6e57bf6261 Adding new cs-based tricore analysis and asm plugin 2023-07-16 13:22:47 +08:00
billow
b1ab2adf6e Removing GNU tricore analysis and asm plugin 2023-07-16 13:22:47 +08:00
yossizap
0cf4cd75b3 Update capstone instruction ids 2023-07-16 13:22:47 +08:00