Commit Graph

1949 Commits

Author SHA1 Message Date
Anton Kochkov
9bfe0c4e1d
Use Ubuntu 18.04 docker image (#3180)
Co-authored-by: wargio <wargio@libero.it>
2023-05-15 20:37:45 +08:00
Lucas Hosseini
a5fa4103b2
Get rid of stale jump arrows in disassembly widget. (#3175)
This commit clears arrows from edited instructions, in order to avoid
stale arrows to remain drawn.

closes #3114
2023-05-14 12:59:13 +08:00
Giovanni
3ccccae291
Fix broken English in UI (#3184) 2023-05-13 10:22:05 +08:00
Lucas Hosseini
a6a7667852
Keep scroll history in decompiler widget. (#3177)
* Keep scroll history in decompiler widget.

This commit adds a `scrollHistory` on top of the rizin-managed
history, that keeps track of the scroll position within decompiled
functions.

* Fix clearing history upon init.
2023-05-13 05:57:35 +08:00
Lucas Hosseini
f1a421c9f6
Fix disassembly scroll history. (#3183)
Avoid calling `erase()` when `topOffsetHistoryPos + 1 >=
`topOffsetHistory.size()`.

closes #3181
2023-05-12 19:52:41 +08:00
Anton Kochkov
3e402c225e
Update Hindi, French, Russian translations (#3182) 2023-05-12 14:48:27 +08:00
Giovanni
5a12f7c626
Fix 'Rizin Graph' widget (#3179) 2023-05-11 13:44:33 +08:00
Lucas Hosseini
beec78b4e2
Keep topOffset history in disassembly widget. (#3171)
This commit adds support for a `topOffset` history (on top of the
rizin-managed history), that keeps track of the offset of the top
instruction in the disassembly widget.

closes #2970
2023-05-11 09:16:06 +08:00
Lucas Hosseini
b63ea5b3e4
Disable expandsOnDoubleClick for Functions widget. (#3172)
closes #2788
2023-05-09 09:49:43 +08:00
Lucas Hosseini
882f340481
Only jump to reference when double-clicking with left mouse button. (#3174) 2023-05-09 09:48:09 +08:00
Lucas Hosseini
8c89dfde8b
Show C type definition in tooltip in Types widget (#3169) 2023-05-06 09:53:40 +08:00
Anton Kochkov
68b3cb1004
Update Japanese, Spanish, Ukranian translations (#3167) 2023-05-04 15:35:29 +08:00
xarkes
cf0f702590
Update IOModesController.cpp (#3166) 2023-05-04 12:14:13 +08:00
xarkes
b27ee987da
Update MapFileDialog.cpp (#3165) 2023-05-04 12:13:57 +08:00
Anton Kochkov
fcd504d87f
Update rizin to the latest "dev", translations (#3160) 2023-04-10 15:58:34 +08:00
Florian Märkl
1f133741ab
Make ClassesWidget a ListDockWidget (#3152)
Adds Quick Filter and generic address-based context menu entries to the
existing ClassesWidget. The original ClassesWidget.ui is not used
anymore as the layout is provided by ListDockWidget and only adjusted.
The AddressableItemContextMenu may now also optionally be shown when
there no currently selected item by using
setShowItemContextMenuWithoutAddress(). This is used e.g. to display the
"Create Class" option when nothing is present in the list.

Fixes #2237

Co-authored-by: Tristan Crawford <tristanthtcrawford@gmail.com>
2023-03-30 19:33:31 +02:00
Anton Kochkov
1c1355df1f Bump version to v2.2.0 2023-03-13 14:12:46 +08:00
Florian Märkl
63125b16c7
Unify parents of dialogs shown by DisassemblyContextMenu (#3148)
Analogous to 2d7fd02a62, parents of
dialogs shown from the DisassemblyContextMenu are consistent now and
windowing issues when lauched through shortcuts are fixed.
2023-03-12 18:54:00 +01:00
Yappa
e69a007b8f Fix "New Function" Dialog (#3102) 2023-02-24 10:43:55 +08:00
Anton Kochkov
68ec5a3da1
Fix attaching debugger (#3139)
* Fix attaching debugger
* Fix deadlock on attach

Co-authored-by: wargio <wargio@libero.it>
2023-02-22 23:09:24 +08:00
Anton Kochkov
4701cedfd2 Get type format from RzBaseType directly 2023-02-21 16:55:33 +08:00
Anton Kochkov
b98eb64646 Remove pci hexdump parsing mode 2023-02-20 16:41:12 +08:00
wargio
7a96fad546 Fix graph export commands to use c api 2023-02-18 22:43:15 +08:00
Anton Kochkov
7057c8606f Update Russian and Chinese translations 2023-02-18 22:34:56 +08:00
wargio
f2e00c59c8 Fix #3113 - Wrong usage of rz_cmd_call instead of rz_core_cmd and @! 2023-02-18 22:07:47 +08:00
Florian Märkl
235b75f3ed
Update translations (#3122) 2023-02-15 15:58:45 +01:00
Anton Kochkov
bbd4961468 Use QFontMetrics instead of fontMetrics() 2023-02-08 21:26:43 +08:00
Anton Kochkov
baeffba7d1
Fix #3087 - use new RzStrEnc for RzBinString (#3088) 2023-01-29 09:51:48 +01:00
Rohit Bisht
5144c3f3b5
Support graph and disassembly scrolling via PgUp and PgDown 2023-01-19 09:49:54 +08:00
Florian Märkl
4e0e0000e1 Remove Breakpad Crash Reporting
Crash dumps generated with breakpad were not made use of to an extent
that would justify the extra maintenance overhead that it comes with. As
Windows builds have recently been broken by it, now is a good time to
retire it.
2023-01-13 14:53:27 +01:00
Semnodime
54cd0f1a42
Fix fo/fortune command in python sample (#3076, Fix #3075) 2023-01-11 10:39:43 +01:00
Tristan
93acec9682
Add text debounce to QuickFilterView & ComboQuickFilterView (#3072) 2023-01-11 10:38:23 +01:00
karliss
a82d4402f8
Store action data as QString. (#3073)
Fixes compilation error in newer QT versions, and also prevents risk of potential memory issues.
2023-01-10 09:45:47 +08:00
Florian Märkl
3d49c4b65a
Fix parsing of new types from C (#3068)
In the TypesWidget, right-click+Load New Types was opening the dialog
for editing an existing type instead of creating a new one. This would
either result in an error (for atomic types) or the old type being
deleted on success.
2023-01-07 20:05:41 +01:00
Florian Märkl
ad82407c2c
Fix changing the CC of a function (#3067)
The QByteArray must be kept alive as long as its contens are used. Also
in this function, Core()->renameFunction() is not used to avoid sending
multiple signals for a single edit action.
2023-01-07 20:05:14 +01:00
Florian Märkl
2d7fd02a62
Unify parents of dialogs shown by DecompilerContextMenu (#3066)
When triggered through a keyboard shortcut, the dialogs shown here would
be positioned at the last position of the context menu or (0, 0), which
is not desired. Using a currently shown widget as the parent fixes this.
2023-01-04 18:23:07 +01:00
Florian Märkl
d47eb1c41f
Update to new variable storage in Rizin (#3062) 2023-01-02 13:29:41 +01:00
Paula
22613b52ed
Adding some functions to "banned" (#2816) 2022-11-06 08:32:30 +02:00
Florian Märkl
abfcad6584
Update rizin with new var counting functions (#3053) 2022-11-05 00:13:02 +01:00
Florian Märkl
dda1ece261
Remove use of deprecated rz_analysis_var_all_list() (#3052) 2022-11-04 14:17:23 +00:00
Theofilos Pechlivanis
22e8bf2381
Refresh Call Graph when renaming functions (#3049) 2022-11-01 22:01:56 +02:00
Theofilos Pechlivanis
ae1e15b7a2 Keep CallGraph widget active when seeking to other functions 2022-10-31 18:33:54 +02:00
Duncan Ogilvie
1ac814c1b9
Fix the padding in SimpleTextGraphView (#3046) 2022-10-25 12:16:48 +02:00
Alex Anderson
3224daa0ee
Add case insensitive string search (#2817) 2022-10-23 13:43:30 +02:00
Duncan Ogilvie
0624cd1d19
Show a nice folder structure in Visual Studio (#2890) 2022-10-23 11:40:26 +00:00
Giovanni
8ad700a6dc
Update rizin (#3044) 2022-10-05 10:35:43 +08:00
Florian Märkl
d972f86e6f
Bump version to 2.1.2 (#3039) 2022-09-19 09:47:22 +02:00
karliss
2e414069c5
Support editing in hex editor (#3026) 2022-09-06 18:46:39 +03:00
turlututututu
a2ed7971aa Update iterator synthax to be compatible with cpp17 (#3033)
std::iterator is deprecated in cpp17 thus in order to be able to upgrade
to cpp17 if needed we manually define the relevant types for iterator.
See https://www.fluentcpp.com/2018/05/08/std-iterator-deprecated/ for
more details.
2022-09-05 19:39:53 +03:00
Edd Barrett
e6db27135d
Fix build on 32-bit systems. (#3032) 2022-08-18 17:18:40 +02:00
billow
7a83001a06
convert ?E to API (#3025) 2022-08-18 06:52:50 +08:00
Kārlis Seņko
cab85d204e Set org domain to fix alt tab icon on Linux #3022 2022-08-15 17:50:43 +03:00
Kārlis Seņko
ee7cfc1b89 Make library list in dashboard scrollbable when needed #3019 2022-08-15 17:31:17 +03:00
Kārlis Seņko
550c416c04 Don't refresh graph breakpoints during redraw. 2022-08-14 13:50:46 +03:00
billow
756850ae27
Convert cmds {., afv[WR]j} (#3017)
* remove `asyncCmd` `asyncCmdEsil`,  `cmdjTask`,  `cmdEsil`, `cmdjAt`
* convert `afv[WR]j`
2022-08-14 12:10:18 +03:00
karliss
41c4857ed9
Introduce some helpers to deal with rizin C API more cleanly. (#3020) 2022-08-13 23:12:57 +03:00
Kārlis Seņko
39bf5c6429 Don't try to load files with wrong extension as native plugins. #2626 2022-08-11 20:47:49 +03:00
billow
617c79f976
Convert pdsf to API (#3010)
* convert `pdsf`
* remove unused
- `CutterCore.opcodes`
- `cmdList`
2022-08-11 20:46:18 +08:00
Kārlis Seņko
6b7b1d1450 Do not check "Built from source" in bug report template by default. 2022-08-11 13:28:23 +03:00
billow
a5b0dd3ed2
Convert commands(agJ, anj, pi) to rizin APIs (#3005) 2022-08-11 18:05:14 +08:00
billow
c263d4bd1b
Convert agcj command call to the API (#3012) 2022-08-11 01:18:56 +08:00
Kārlis Seņko
ddefc0663a Don't leak memory in bb highlighter. 2022-08-10 16:34:34 +03:00
Jeremy Rifkin
278b4e19b9
Update GraphGridLayout documentation (#3000)
* Updated GraphGridLayout documentation

* Don't use potentially misleading  name "segment tree" .

Not exactly segment tree (although sometimes called that), and for the purpose of high level understanding how graph layout works doesn't matter what it is. Any data structure which provides required queries could be used.

Co-authored-by: Kārlis Seņko <karlis3p70l1ij@gmail.com>
2022-08-10 21:05:01 +08:00
billow
a4a4b9d2ec
Convert to rizin APIs pc* px* (#3007) 2022-08-09 23:51:20 +08:00
billow
35f9bfe135
Update rizin and version API (#3008) 2022-08-09 09:29:08 +08:00
billow
44b7a7997a
Convert disassembly (pd pdj pdJ) to rizin API (#2996) 2022-08-01 17:57:16 +02:00
Florian Märkl
db0d4d85a6
Use CutterJson for Signatures and rewrite JsonModel (#2997)
This fixes a double-free in getSignatureInfo() when the string was
already freed by the intermediate CutterJson. But actually just using
this CutterJson makes more sense than the string anyway, so let's do
that.
The old JsonModel rebuilt the entire structure, defeating the main
purpose of a custom model in comparison to the existing QTreeWidget.
And since we are holding the json structures ourselves anyway, such a
custom model does not have many benefits anyway.
2022-07-09 16:26:35 +02:00
Florian Märkl
51c0a3d469
Construct and destruct CutterCore singleton locally (Fix #2704) (#2994)
Using Q_GLOBAL_STATIC meant that the CutterCore was destructed late as
part of a binary destructor. It would then free the RzCore, calling for
example the fini callbacks of all plugins. However global destructors in
shared library plugins may have already been run at this point, leading
to for example rz-ghidra's decompiler_mutex being used after
destruction.
Instead of the Q_GLOBAL_STATIC-managed global object, we are now
handling the lifetime of the CutterCore ourselves and only injecting its
instance to be accessed globally. This can also be a first step towards
making the core instance completely local.
2022-07-09 12:48:48 +02:00
billow
e4db94eb87
Convert to rizin APIs (#2973)
`rz_core_bin_get_compile_time`, `ij`/`CutterCore::getFileInfo()`,
`aaij`, `iVj`, `iEj`, `izzj`, `iMj`, `aeim-`, `aei-`, `tc`,
`rz_core_config_variable_spaces`, `o`, `oodf`
2022-07-02 15:49:13 +02:00
Florian Märkl
91fce8220b
Remove direct download from update check (#2989)
Hardcoded prediction of filenames for future releases is too prone to
break, which is what happened with v2.1.0.
So better to provide the link to the release page only.
2022-07-02 14:23:13 +02:00
Florian Märkl
df71da8f53
Update rizin dev (#2987)
Relevant breaking commits in rizin:
9ea7c2fa5acd0b9b0c178a1b4316adc129e7c512
2987e035da827903329ec6433410899b985e2434
2022-07-01 22:49:58 +08:00
Florian Märkl
ddacbd7828
Extend blocksize to work around pdJ printing to few lines (#2984) 2022-06-25 15:20:50 +02:00
Riccardo Schirone
8f7aebe7c7
CutterCore: select the right RzReg based on debug/emulation status (#2977) 2022-06-25 09:51:17 +02:00
Giovanni
f99ffc3dbd
Fix #2958 - Add checkbox to fill remaining bytes with nops. (#2974) 2022-06-23 07:44:25 +08:00
Florian Märkl
e60ba18e43 Fix segments listing 2022-06-23 01:09:45 +02:00
Florian Märkl
5b777b8202 Fix sections entropy display 2022-06-23 01:09:45 +02:00
Florian Märkl
cb26142398 Fix many null derefs when opening no file 2022-06-23 01:09:45 +02:00
billow
06c8f15ce0
Convert Rizin command calls to the API (#2968)
* `es`
* `il`
* `wcr`
* `.ar-`
* `aets-`
* `drp`
* `ahts`
*  `e <val>=?`
* `fo`
2022-06-16 07:28:43 +08:00
billow
aa222b53df
Convert more commands to rizin APIs (#2964)
`fdj?`, `iRj`, `om.`, `psx`, `p8`, `fj`
2022-06-10 13:05:25 +02:00
Giovanni
b66c3f6f30
Bump version to 2.1.0 from stable (#2962) 2022-06-08 18:34:03 +02:00
billow
11419f6858
Convert Rizin command calls to te Rizin APIs (#2960)
* Convert `iCj` call to the API
* Convert `icj` call to the API
* Convert `iij` call to the API
* Convert `iej` call to the API
* Convert `CClj` call to the API
* Convert `iEj` call to the API
* Convert 'ihj' call to the API
* Convert 'iSSj' call to the API
2022-06-08 08:02:26 +08:00
Giovanni
90608117c9
Yara plugin + fix linuxdeployqt plugins (#2924) 2022-06-08 07:18:43 +08:00
Giovanni
247ab94b71
Download and install sigdb option (#2949)
* Download and install sigdb option and disable swift demangler when libswift is installed
* Remove dir.prefix and use rz_core_analysis_sigdb_list for sigdb
* Use a different color for flirts
* Updated to rizin dev
* Use rz_path_set_prefix to set the prefix path on OSX bundle
2022-06-06 11:27:13 +02:00
Florian Märkl
2e6fd46127
Fix null deref in strings loading without any file (#2955) 2022-05-30 19:34:33 +02:00
Islam Bassuni
a630a8f5bc
Partially refactor Dashboard to API (#2930)
Also fixes missing NX and PIC bits in Dashboard.
2022-05-30 19:34:17 +02:00
Florian Märkl
3fc3d8d878
Fix EditVariablesDialog parenting (#2954)
This fixes the dialog being placed weirdly when using the 'Y' shortcut
because it was parented to the DisassemblyContextMenu, which itself
might not be shown at all.
2022-05-30 18:13:55 +02:00
bartoszek
26e4f4acb8
Add missing Rizin headers in python bindings (#2943) 2022-05-30 13:04:34 +02:00
Florian Märkl
1914b34fd8
Refactor VisualNavbar to use API instead of p-j (#2953)
With the updated rizin, this also fixes any error prints saying
"Cannot alloc for this range" and json errors when no valid range is
available.
2022-05-30 13:01:55 +02:00
billow
150769cd6b
Convert Rizin commands to the API calls (#2948)
Including wx wr wd ws ww wz ahi ahb aec aecu aecc aecs aes aesb aets+
aets- afc afcl omfg+w oo+ oo p8 aei aeim aeip aecb aeso dbs avj
2022-05-28 10:09:00 +02:00
billow
c9e8686ecb
Convert Rizin commands to the API calls 2022-05-22 16:51:54 +08:00
billow
c0f80a2628 convert to api for dr 2022-05-19 11:11:46 +08:00
billow
d6ce8048c5 convert to api for aht 2022-05-19 11:11:46 +08:00
billow
3d39cf625f convert to api for aoj 2022-05-19 11:11:46 +08:00
Paul I
5f376f55db
Revert changes in functionAt (#2941) 2022-05-12 16:55:55 +02:00
Giovanni
bdeacabffb
Replace afcf with C api. (#2940) 2022-05-08 15:17:52 +03:00
Jakob Zielinski
6f61d0d7d8
Search button disabled and button text changed while search is occurring (#2928) 2022-05-07 15:01:10 +03:00
staz
8cb4f867fa
Fixed an invalid index check (#2937) 2022-05-07 14:59:46 +03:00
Islam Bassuni
d2243006e2
Created adding comments option inside Hexdump. (#2927) 2022-04-13 07:50:57 +03:00
billow
de5c1a5154
Convert from Rizin commands to the API for w (#2926) 2022-04-10 11:43:42 +08:00
Giovanni
861c784600
Adds support for RZ_SIGDB path and fixes sorting on some columns (#2923) 2022-04-05 11:35:45 +02:00