Commit graph

3038 commits

Author SHA1 Message Date
Anton Kochkov
e26ae5f63c
visual: remove prc=a mode (#3758) 2023-08-17 16:04:38 +08:00
Pavel I
061c56f4c4 RzStrBuf: remove weakref related code 2023-08-15 09:00:22 +08:00
Pavel I
ee1f1a4332 Fix memleak in rz_assembly_of_hex_handler() 2023-08-14 13:08:22 +08:00
Pavel I
6c20796600 Fix memleak in parse_relocs_from_indirect_syms() 2023-08-14 13:08:22 +08:00
Pavel I
73fcbd801d Fix memleak in parse_reg_profile_str() 2023-08-14 13:08:22 +08:00
Pavel I
779c5b2566 Fix memleak in rz_reg_item_free() 2023-08-14 13:08:22 +08:00
Anton Kochkov
dc9b57166d util: remove rz_num_get_name() 2023-08-11 19:00:56 +08:00
Anton Kochkov
f6f397e704 util: remove rz_num_chs() 2023-08-11 19:00:56 +08:00
Anton Kochkov
67519c1664 util: remove unused RzNum API 2023-08-11 19:00:56 +08:00
Anton Kochkov
1a06b2d585 util: remove rz_num_{sin,cos}() 2023-08-11 19:00:56 +08:00
Anton Kochkov
3b3de3b66c util: remove dead RzNum code 2023-08-11 19:00:56 +08:00
blarn
e3617f7981
Expand pc commands to accept size argument (#3738) 2023-08-10 22:55:25 +08:00
Riccardo Schirone
3dce9c0563
util, cmd: fix rz_rand64 and %r (#3742) 2023-08-10 18:06:52 +08:00
billow
28ad8e943d
Fix Tricore disassembly performance (#3729)
* Try fix Tricore slow disassembly
* Fix tricore_op_set_type
2023-08-10 11:48:49 +08:00
Pavel I
0a623e1589
Fix memleak in ds_opstr_try_colorize() (#3741) 2023-08-10 10:16:17 +08:00
Mikael Berthe
b9281cbc9c
Fix arrow keys on some terminals (#3718)
* Add support for arrow keys on some terminals

Some terminals use the sequences \EO{A,B,C,D} for the arrow keys
(e.g. xterm, tmux, screen).

* Remove cursor move on Ctrl-l

^L clears the screen as expected, but the cursor is moved and it is
probably not intended.
2023-08-09 20:44:01 +08:00
ifyGecko
278607aabf
Update le.c (#3734)
free'ng the header is covered by fail_cleanup label
2023-08-09 10:41:56 +08:00
Peiwei Hu
d71f4a2128
Add new command plf to print the RzIL of the function (#3724)
+ expose API rz_core_analysis_bytes_il
+ add new command `plf`
+ add test test/db/cmd/cmd_plf
2023-08-05 22:27:54 +08:00
billow
48b0880562
Fix tricore jumps/calls syntax #3664 (#3708)
* Fix tricore jump address set
* Fix tricore sub jumps
* Add TRICORE asm pattern
2023-08-04 10:44:07 +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
Anton Kochkov
fe8ed0bfbe
util: do not unnecessary initialize members of ut128 (#3717) 2023-08-02 22:12:15 +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
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
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
831c472f09
Improve help for ~: command (#3681) 2023-07-21 14:55:20 +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
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