Commit graph

29164 commits

Author SHA1 Message Date
Rot127
905416f928
Disable usage of wx pages on darvin. (#4311) 2024-03-03 11:39:12 +08:00
Peiwei Hu
33c8299eef
Refine the heuristic rule for encoding detection (#4319) 2024-03-03 08:10:49 +08:00
Peiwei Hu
db7254dd79
Use rz_pvector_join instead of loop (#4320) 2024-03-03 08:09:49 +08:00
Khairul Azhar Kasmiran
299454138b
$: Add rzshell façade (#4314) 2024-03-02 17:11:02 +08:00
Rot127
c2b9208fc2 Unset static flag if system pcre2 lib is used. 2024-03-01 01:14:07 -05:00
Rot127
53235602e4 Fix inlcudes 2024-03-01 01:14:07 -05:00
Khairul Azhar Kasmiran
7cf3a9bbdb
$?: Update to rzshell syntax (#4309) 2024-03-01 00:03:47 +08:00
Peiwei Hu
0fff253fd9
Fold XREFs line more than 3 when in the graph mode (#4308) 2024-02-29 14:28:26 +08:00
Riccardo Schirone
d5eca81256
core: remove plugin from list if init fails (#4300) 2024-02-28 10:18:15 +08:00
Riccardo Schirone
61ee3206f3
core: remove oldshell completion code (#4301) 2024-02-27 20:48:16 +08:00
billow
3b3d57c36c
project: fix global var loading (#4298) 2024-02-27 20:42:23 +08:00
Huzaifa
58f7032f26
Add C API rz_debug_switch_to_first_thread() (#4287) 2024-02-26 21:13:33 +08:00
Peiwei Hu
58808b2756
Remove the deprecated API rz_bin_get_info (#4119) 2024-02-26 00:14:03 +08:00
Peiwei Hu
5d053f0448
Refactor the <entries> in RzBinPlugin from list to pvector (#4118) 2024-02-25 19:42:25 +08:00
Khairul Azhar Kasmiran
8b21371b8d
doc/rzshell: Update w? example (#4295) 2024-02-25 10:34:08 +08:00
Rui Chen
3db7f8b598
docs(PACKAGERS): fix meson option names (#4294)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2024-02-24 23:18:18 +08:00
Khairul Azhar Kasmiran
b61b951232
$: Fix $alias=$<backtick>cmd<backtick> (#4293) 2024-02-24 13:55:14 +08:00
Anton Kochkov
7225e9b753 Bump version to v0.8.0 2024-02-24 12:09:08 +08:00
Giovanni
78d4043afb
Fix arm64 analysis to fix regression on ARM64 switch tables. (#4284)
* Bump capstone next
* Fix arm64 analysis to fix regression on ARM64 switch tables.
* Fix tests
2024-02-24 00:00:12 +08:00
Rot127
a6c7864198
Fix mismatch 'rz_cons_break_push' and 'rz_cons_break_pop' calls. (#4289)
If a function calls 'rz_cons_break_push()' but never calls 'rz_cons_break_pop()' before return,
the stack count of 'RzConsContext->break_stack' contains too many elements (each time one too much).

This in turn will lead to not resetting 'RzConsContext->breaked' flag.
Because the flag is only set to false, if 'rz_stack_is_empty(context->break_stack) == true'
(in 'rz_cons_context_break_push()').

This wasn't a problem so far, because 'RzConsContext->breaked' is simply never set to true
(exceptions are some timeout cases as far as I can see).
Also these cases when 'rz_cons_break_pop()' was forgetten to be called, were edge error cases.
So not often hit.

But if Rizin is usd by Cutter 'RzConsContext->breaked' is set to 'true',
if an `AnalysisTask` interrupt is handled (in 'AnalysisTask::interrupt()').
This interrupt is triggered for example, when the introduction dialog is closed
and the main Cutter window opens (after the optional 'aaa').

Now, if the binary file was analysed with 'aaa', and a lot of error cases were hit,
those error cases sometimes never called 'rz_cons_break_pop()' before returning from their function.
Although, of course, they should have to the `RzConsContext->break_stack` is in a proper state.

This means, when the main Cutter window opens binary files which trigger many error edge cases,
the `RzConsContext->break_stack` is not empty
(because of the not executed 'rz_cons_break_pop()').

This also means, that the last thing done, was setting 'RzConsContext->breaked = true'
(by 'AnalysisTask::interrupt()').

If Cutter wants to show some disassembly, it calls 'rz_core_print_disasm()' which checks
'RzConsContext == false' via 'rz_cons_is_breaked()'. This condition is never true, because
the flag was not reset to `false` because the stack was never empty.
So it returns before anything was disassembled.

Hence Cutter gets no disassembly text.

Fixes https://github.com/rizinorg/cutter/issues/2552
Fixes https://github.com/rizinorg/cutter/issues/3275
2024-02-23 23:50:11 +08:00
pelijah
7959b4cffb
Fix memleaks related to RzBin::default_hashes (#4286) 2024-02-23 20:20:19 +08:00
Anton Kochkov
f8318bec30
doc: improve man pages (#4288) 2024-02-23 20:13:19 +08:00
Anton Kochkov
9719961b82
analysis: fix capstone 4 and 5 builds (#4283) 2024-02-21 23:47:11 +08:00
Anton Kochkov
e690ea37de
analysis/dwarf: extract register profiles in headers (#4281) 2024-02-21 23:25:16 +08:00
Huzaifa
bde374dad6
Remove Static Variables from RzAnalysis Plugins (#4282) 2024-02-21 23:24:58 +08:00
Florian Märkl
2a9f765582
Weaken f80 assertions in test_float for non-x86 (#4280)
OpenBSD/sparc64 uses 128-bit floats as long double by default while our
tests seeminly assumed either 64-bit or 80-bit, both of which produce
different results than 128 here. Since 80-bit is x86-specific, we check
only the bits we know will be identical between other architectures.
2024-02-21 15:02:05 +01:00
Anton Kochkov
101155383b
core/analysis: API to calculate multiple instructions size (#4279) 2024-02-21 21:08:58 +08:00
Heersin
d37fc4c8f8
rx: add DWARF profile (register mapping) (#4277) 2024-02-21 00:09:10 +08:00
billow
3eb9527bcd
rl78: add DWARF register profile (#4276) 2024-02-20 22:34:40 +08:00
Anton Kochkov
551cf21ac7
type/format: fix output in pf commands (#4272) 2024-02-20 21:37:14 +08:00
Rot127
dfc0114a71 Replace sdb_fmt() with rz_strf(). 2024-02-20 05:57:03 +00:00
pelijah
cf62a870ab
Fix several memleaks in regex.c (#4274) 2024-02-20 11:29:59 +08:00
billow
f89e875d8f
v850: add local variables detection (#4271)
* v850: fix local variable detect
* v850: add local variable test
* v850: fix stack inc
2024-02-20 00:08:03 +08:00
Anton Kochkov
91702ed767
type/format: fix typedefs self-reference (#4270) 2024-02-19 23:07:16 +08:00
Anton Kochkov
3e995d86e0 pf command help fixes 2024-02-19 20:14:12 +08:00
Anton Kochkov
518659bef0 bin/dwarf: fix dSYM separate loading 2024-02-19 20:13:36 +08:00
wargio
bc6946bc4d Add long string test 2024-02-19 19:39:00 +08:00
wargio
ef5d22e13d Fix string search related tests 2024-02-19 19:39:00 +08:00
wargio
e978d7d442 Backtrace info should be fetched only in certain flag spaces 2024-02-19 19:39:00 +08:00
wargio
f9422ac0cd Bump project to v16 2024-02-19 19:39:00 +08:00
wargio
a80622bcc1 Remove old options and replace with new global ones for string search.
Removed options:
- `bin.maxstr`

Renamed options:
- `bin.minstr` is now `str.search.min_length`
- `bin.maxstrbuf` is now `str.search.buffer_size`
- `bin.str.enc` is now `str.search.encoding`

New options:
- `str.search.reload`
- `str.search.max_threads`
- `str.search.max_uni_blocks`
- `str.search.max_region_size`
- `str.search.raw_alignment`
- `str.search.check_ascii_freq`
- `str.search.mode`
2024-02-19 19:39:00 +08:00
Anton Kochkov
7abb3adc48
git: ignore pcre2 subproject (#4266) 2024-02-19 09:16:40 +08:00
Anton Kochkov
e60e17818a
doc: fix packagers.md formatting (#4265) 2024-02-19 09:16:21 +08:00
Giovanni
411e6fd09f
Fix jsdec build (#4264) 2024-02-19 09:10:30 +08:00
Rot127
31f6c53d4c Attempt to fix test regex. 2024-02-18 21:29:03 +08:00
Rot127
4e6f21b07f Add include guards for post CS v4 instructions. 2024-02-18 21:29:03 +08:00
Rot127
0363f71654 Fix JUMP flag is overwitten with MOV flag.
Fix test for mov to pc
2024-02-18 21:29:03 +08:00
Rot127
abb8c3db75 Bumb Capstone next version. 2024-02-18 21:29:03 +08:00
Rot127
a84c7897fc
pcre2: fix NetBSD build by using different allocator. (#4259) 2024-02-18 18:22:06 +08:00
Rot127
1311b75c75 Bump PCRE2 to 10.43 release. 2024-02-18 07:26:08 +00:00