Luc Tielen
26599b7dbe
Refactor structure of metadata for core plugins ##core
2023-08-14 11:05:34 +02:00
Luc Tielen
c173e550ff
Add r_anal_xrefs_has_xrefs_at function ##anal
2023-08-08 15:22:49 +02:00
Luc Tielen
4f6e2547d8
Remove duplicate xrefs delete function ##anal
2023-08-08 12:12:35 +02:00
Luc Tielen
8a73fa94f5
Cleanup code
2023-08-08 12:12:35 +02:00
pancake
2065c2c911
Simplify the cwisstable for portability and readability
2023-08-07 13:50:54 +02:00
Mewt R
5280cc46a1
R_API function to count xrefs at a specific address ##anal
2023-08-06 08:52:16 +02:00
Luc Tielen
501397d5f6
Cleanup xrefs code ##anal
2023-08-03 17:38:24 +02:00
Luc Tielen
3a2e558741
Optimize xrefs using swisstable ##anal
2023-08-03 16:21:08 +02:00
pancake
0fdc819c1c
Delete anal->uses
2023-08-03 11:48:03 +02:00
pancake
c006c10f7b
Update arch from Config while finding best matches ##arch
2023-08-01 20:58:25 +02:00
pancake
d4966927f7
Fix rasm2 -a arm.v35 tests on x86 ##arch
2023-08-01 13:17:07 +02:00
pancake
bcfe04e82c
Reimplement the a2f core plugin into an analysis one ##analysis
...
* TODO: Remove the core/p/core_a2f.c and update the tests
* a:a2f vs a2f seems like a bad name change,
* maybe rename the plugin to a:f ? :think:
2023-07-31 11:54:29 +02:00
pancake
7a2b40a9fd
Fix #22107 - VA breaking the disassembler after picking an assembler
2023-07-27 17:41:38 +02:00
pancake
1029c8d814
Hide duplicated xrefs in zg ##zignatures
2023-07-25 20:03:32 +02:00
pancake
d658b74fd7
Fix missing zignature xrefs, resolving source function name instead of flag ##zignatures
2023-07-25 20:03:32 +02:00
pancake
05e1e2e7d5
Enumerate any kind of refs/xrefs not just call/code ones ##zignatures
2023-07-25 20:03:32 +02:00
Luc Tielen
e08aee5f05
Allow append in vec to deep copy ##util
2023-07-20 15:20:46 +02:00
Luc Tielen
ea12b05a2a
Rework vec macros to inline finalizer function ##util
2023-07-20 12:58:14 +02:00
Luc Tielen
1294849c28
Implement small vec optimization ##util
2023-07-20 12:58:14 +02:00
Luc Tielen
6cd0ae6c54
Refactor vec generate macro ##util
2023-07-18 11:59:15 +02:00
pancake
41b7c9a37f
Define more op.type for pyc ##arch
2023-07-17 23:37:07 +02:00
Luc Tielen
e9e85a6570
Save a bit of memory in xrefs implementation ##analysis
2023-07-17 19:16:00 +02:00
pancake
ed8a0e1688
Fix UAF in REsil.free() when called from RAnal.free()
2023-07-17 03:58:41 +02:00
pancake
dcfc36ede5
anal->esil can't be null now, improve default initialization ##esil
...
* Fix anal.gp initialization with esil traps
* Adapt tests to use aeim when needed
* Improve pde initialization with r2 -c
* Requires 2nd round review, added comments
2023-07-17 01:43:56 +02:00
pancake
42b63944aa
Remove reg-related callbacks from analplugins too
2023-07-11 12:07:19 +02:00
pancake
8ea2b2e2c5
Remove some more analplug fields and add RMem.set()
2023-07-11 12:07:19 +02:00
pancake
52a738bdcb
Implement the new RAnal.cmd() ##api
2023-07-11 12:07:19 +02:00
pancake
9ffd6f029a
Initial deprecation of the current RAnalPlugin ##abi
2023-07-09 12:31:48 +02:00
pancake
e1b8c12809
Fix RCons.pal varnames to make them all follow the same syntax ##cons
...
* graph.diff.x -> diff.x
* func_var_x -> var.x
* widget_x -> widget.x
2023-07-07 00:36:49 +02:00
pancake
5988e00f83
Add ec func_var_name
in the color palette ##cons
...
* Use it in disasm.c and update all the themes
2023-07-07 00:36:49 +02:00
pancake
a239725631
Fix esil plugins by removing leftover and adding aeL command ##esil
...
* aeL -> list all esil plugins
* aeL name -> initialize this plugin
* aeL-name -> deinitialize this plugin
2023-07-06 01:05:22 +02:00
pancake
c3d900ad76
Honor 'rsym.' flag prefix ##analysis
2023-07-05 23:53:32 +02:00
Luc Tielen
1abc2fafea
Rename pcalign to codealign
2023-07-05 15:50:53 +02:00
pancake
b3469bb6cf
Migrate the LAST and final boss X86 plugin ##arch
...
* anal.cc tests are the only tests marked as broken
* Bonus points: minor code cleanup here and there
* Thanks to Luc for all the work and chats to make it happen
2023-06-29 23:46:48 +02:00
pancake
2411add834
Minor optimization in r_anal_block_op_starts_at ##analysis
2023-06-29 23:46:48 +02:00
pancake
c8d18b8123
Add and use the new Indirect Code XREF type to improve code coverage ##analysis
2023-06-28 20:48:57 +02:00
pancake
114096b8c4
Some code random cleanups
2023-06-28 20:48:57 +02:00
pancake
c9efae743b
Add the new r_anal_data_type() for better data type detection ##analysis
...
* Kind of the .kind() method, but using a different approach
* Good for experimentation and looking forward to get better data analysis
2023-06-28 20:48:57 +02:00
pancake
d5b5be2c7d
Smol ref->type masked improvements ##analysis
...
* This patch is part of the big fix-axg PR
2023-06-27 20:19:04 +02:00
pancake
1016090198
Harmless code cleanups and minor improvements here and there
2023-06-27 19:47:14 +02:00
Luc Tielen
a40d2e8006
Fix removing core plugins from Lc after L- ##core
2023-06-27 11:45:23 +02:00
pancake
3f410c5dc6
Fix recently introduced oobread asan crash
2023-06-26 19:27:17 +02:00
pancake
2c188db1d3
Fix division by zero when pcalign is 0 ##arch
...
* Reproducible on the pic18 disassembler
2023-06-25 13:42:01 +02:00
pancake
ddc31c216c
Add RAnalFunction.traceCoverage() api and info in afi/afl/abi/.. ##analysis
2023-06-23 21:38:46 +02:00
pancake
25b749fe7e
Deprecate r_asm_op_get_buf and make r_asm_code_equ_get public ##asm
2023-06-22 00:58:20 +02:00
pancake
4a42dd689b
Fix recently introduced oobwrite in RAnal.op()
2023-06-22 00:21:56 +02:00
pancake
5ab9a6f002
Unify the invalid instruction behaviour ##arch
2023-06-21 21:20:10 +02:00
pancake
eb0f571be7
Minor bugfix/improvement when ninstr == 0 ##analysis
2023-06-20 19:31:47 +02:00
pancake
f212823b16
Don't add more instructions than the ones we can handle in the basic blocks ##analysis
...
* Fix undefined behaviour when using uninitialized memory
* ut16 is enough for 99% of the non-corrupted/obfuscated functions
* ut8 is enough for 99% of the use cases too
* Maybe we can use the new vector or have a dynamic vector that grows
elements to store bigger numbers like uleb128 but for vectors
2023-06-19 12:54:25 +02:00
pancake
ea97bc4c38
Fix assembler fallback on non-native arch
2023-06-17 21:25:36 +02:00