billow
8026d94b56
rzil: add analysis and evaluation integration test ( #4241 )
...
* Try to refactor rz_core_analysis_bytes_il
* Add the RzIterator
* Refactor rz_core_analysis_op_bytes with RzIterator
* Refactor rz_core_analysis_bytes with RzIterator
* Add test_analysis_il
* Fix AnalysisBytesContext_next
* Fix heap-buffer-overflow and UBSan
* Fix use-after-free
2024-02-16 21:10:44 +08:00
Anton Kochkov
753e43fbf1
core/flags: add complex unicode name test ( #4245 )
2024-02-16 16:58:03 +08:00
Rot127
49abb5d958
Fix doxygen for rz_regex_get_group_idx_by_name()
2024-02-16 16:57:31 +08:00
Rot127
2fde7808a0
Don't match numbers with a '.', '*' and '\w' prefix.
...
The exclusion pattern [^\w.*] excludes all numbers with a '.' and '*' prefix.
This is only done because the previous parsing did it like this.
And not doing it, breaks substitutions from before. E.g. when addresses,
were replaced with flag names which include numbers (case labels like: case.<switch-address>.<case-number>).
See: https://github.com/rizinorg/rizin/issues/4238 for more details of this problem.
2024-02-16 16:57:31 +08:00
Rot127
6fcc9f6c6a
Fix tests with newly replaced symbol names.
...
With cd57f517fc30e49ea5ebb5c99db276c1f41c62f9 more numbers are detected
and symbol names can be replaced.
2024-02-16 16:57:31 +08:00
Rot127
d702d2bc0d
Replace find_next_number with a regex version to be less obscure.
2024-02-16 16:57:31 +08:00
Rot127
18a4d71492
Add rz_regex_get_group_idx_by_name()
2024-02-16 16:57:31 +08:00
Rot127
643718d499
Fix hexagon analysis tests
2024-02-16 16:57:31 +08:00
Rot127
22827fd7ee
Add rz_regex_find().
2024-02-16 16:57:31 +08:00
Anton Kochkov
3b0f42acb9
analysis/types: add more WinAPI types ( #4244 )
2024-02-16 14:51:21 +08:00
Anton Kochkov
28de08e320
core/cmd_print: remove unused oldshell code ( #4243 )
2024-02-16 13:44:49 +08:00
Anton Kochkov
e9000ec45b
core/bin: convert cmd call to API
2024-02-16 13:44:28 +08:00
Anton Kochkov
d0a24f5789
core/disasm: convert cmd call to API
2024-02-16 13:44:28 +08:00
Anton Kochkov
ceefb5e114
Convert pf commands to rzshell ( #3467 )
2024-02-16 10:30:59 +08:00
Ahmed_Hany
a5297b57c2
Add help and colors for rz-run -h ( #4225 ) ( #4237 )
...
* `-l` flag for listing profile options
* `-d` for ouputing a base profile template.
* Updated relevant manpage.
2024-02-16 01:54:12 +08:00
Giovanni
ac63502f76
Fix aeA when rz_analysis_op fails. ( #4240 )
2024-02-15 20:55:52 +08:00
wargio
3b361e7760
CID 316571: Double free
2024-02-15 19:41:12 +08:00
wargio
50fedb2f77
CID 429545: Uninitialized pointer read
2024-02-15 19:41:12 +08:00
wargio
0e93e90df7
CID 432808: Use after free
2024-02-15 19:41:12 +08:00
wargio
f24036a3b7
CID 435760: Out-of-bounds read
2024-02-15 19:41:12 +08:00
wargio
6b9dd81732
Update core/golang.c copyright header.
2024-02-15 19:41:12 +08:00
wargio
b4de5d53b2
CID 436255 Out-of-bounds read & code refactoring
2024-02-15 19:41:12 +08:00
Anton Kochkov
60e93b28ca
util/print: emove cb_eprintf() ( #4235 )
2024-02-15 18:12:09 +08:00
Rot127
7558233da1
Prevent creation of node duplicates. ( #4233 )
...
Because list-based graph implementation cannot differentiate nodes by their data,
node duplicates are added, if we don't take care of it.
2024-02-15 15:50:22 +08:00
Anton Kochkov
0867fd9d3d
Remove assert() calls ( #4230 )
2024-02-15 15:34:29 +08:00
Giovanni
39e4e74c4e
Add ppc32, mips, sh, sparc, loongarch, s390, riscv DWARF register mapping. ( #4232 )
2024-02-15 15:33:56 +08:00
billow
5d434c47a4
Add V850 32bit register profile ( #4229 )
2024-02-15 01:46:28 +08:00
Rot127
7ab605a142
Add (i)CFG node type annotations + bug fix ( #4221 )
...
* Read bytes at curr_op->fail/jump into buffer before decoding them.
* Add meta information of iCFG and CFG nodes to dot graph labels.
* Add subtype annotations to CFG and iCFG nodes.
* Test reading of buffer before node to RzAnalysisOp.jump/fail is added.
* Fix CFG tests by adding node type annotations.
* Add iCFG graph with 'alloc' annotations.
* Wrap ascii annotation symbols in brackets.
* Add doxygen to rz_str_append(f)
2024-02-14 23:40:00 +08:00
Rot127
f0435d94cc
Trim grep expression before processing it. ( #4227 )
2024-02-14 21:43:42 +08:00
Giovanni
766886d706
Improve golang support by recovering go packages. ( #4228 )
2024-02-14 18:27:58 +08:00
Anton Kochkov
c3535fa9b8
core/disasm: remove static variables ( #4224 )
2024-02-14 11:42:53 +08:00
Giovanni
2886608d59
Rewrite how rz_cons_pipe_open/close behave to remove globals ( #4223 )
2024-02-14 09:05:17 +08:00
Anton Kochkov
fa455f8b52
cons/dietline: remove some static variables ( #4218 )
2024-02-13 18:24:53 +08:00
Rot127
9b4a93512d
Fix some token patterns for hexagon mnemonics. ( #4220 )
2024-02-13 17:56:33 +08:00
billow
dce6ac8b6b
DWARF: loading DWARF in .dSYM ( #4219 )
2024-02-13 14:36:13 +08:00
Giovanni
4058512854
Fix regression on panel due recent changes. ( #4217 )
2024-02-13 10:43:36 +08:00
Anton Kochkov
3da3184284
core/disasm: remove static variables ( #4214 )
2024-02-12 23:34:24 +08:00
Giovanni
c5e787d867
Fix openssl 3.0 support due changes on legacy algorithms. ( #4215 )
...
md4, md5 and other algorithms has been moved under the legacy provider
2024-02-12 17:44:04 +08:00
Anton Kochkov
722de8bb0a
core: remove dead code ( #4213 )
2024-02-12 16:39:58 +08:00
Giovanni
3fd3db406e
Update github actions to remove warnings ( #4211 )
2024-02-12 16:32:19 +08:00
Anton Kochkov
86560ee699
cons/grep: remove global state ( #4210 )
2024-02-12 15:33:20 +08:00
Anton Kochkov
13c7e1116c
Better error messages when creating new function ( #4085 )
2024-02-12 14:51:51 +08:00
Giovanni
29b2093650
Fix Windows compilation warnings ( #4209 )
...
* Fix 'bool' differs in levels of indirection from 'void *'
* Fix function declaration.
2024-02-12 14:28:04 +08:00
Giovanni
4b5cd86682
Refactor how ASLR and implement rz_sys_execv using RzSubprocess ( #4202 )
2024-02-12 12:22:55 +08:00
Maijin
a5ec0b60e3
Complete nin.h enum ( #4206 )
2024-02-12 10:52:07 +08:00
Anton Kochkov
4fec9a49e4
man: minor formatting fixes ( #4205 )
2024-02-11 15:59:37 +08:00
Anton Kochkov
25fd417a28
Add user pointer to RzListComparator ( #4204 )
2024-02-11 13:28:33 +08:00
Anton Kochkov
1b53c5c8f6
Update PACKAGERS.md ( #4201 )
2024-02-10 17:50:57 +08:00
Anton Kochkov
8e4faa3906
Remove scr.rainbow option ( #4199 )
...
* Remove scr.rainbow option
* Update librz/util/float/float.c
2024-02-10 12:02:50 +08:00
Rot127
fcf4f7182f
Add different types of RzGraphNodeInfos. ( #4189 )
...
* Add different types of GraphNodeInfos.
This adds support for multiple graph node infos.
It removes the assumption that information of
a graph node must be some strings and an offset.
* Increase buffer for printing graph node body
* Don't hardcode maximum label size
* Add graph node info for icfg
* Add node type info to CFG.
* Access address members properly for iCFG and CFG nodes
* Update test. Function names are no longer saved.
* Fix reachable double free of label
* Split graph node type from its sub-type to make it less confusing.
* Add integration tests for iCFG nodes.
* Fix, add mising buffer read
* Recognize more calls
* Add test for iCFG generation and its node details.
2024-02-09 22:23:36 +08:00