Commit Graph

346 Commits

Author SHA1 Message Date
pancake
2f2d77267d
Implement ahb*, use more single quote, fix codeinj vuln and more ##analysis
Some checks are pending
build / w32-meson (push) Waiting to run
build / w64-static-2022 (push) Waiting to run
build / w64-static (push) Waiting to run
build / w64-meson (push) Waiting to run
build / check_abi_compatibility (push) Blocked by required conditions
build / check_release (push) Blocked by required conditions
build / release (push) Blocked by required conditions
CI / linux-acr-oldlibsbug (push) Waiting to run
CI / linux-nocs (push) Waiting to run
CI / linux-acr-gperf (push) Waiting to run
CI / linux-sys-capstone (push) Waiting to run
CI / linux-acr-resymlink (push) Waiting to run
CI / linux-test (push) Waiting to run
CI / linux-static-meson (push) Waiting to run
CI / macos-test (push) Waiting to run
CI / linux-rpath (push) Waiting to run
CI / macos-rpath (push) Waiting to run
CI / linux-meson-spaces (push) Waiting to run
CI / linux-tinyasan-fuzz (push) Waiting to run
CI / linux-asan-fuzz (push) Waiting to run
CI / w64-make (push) Waiting to run
CI / w32-mingw (push) Waiting to run
CI / w64-mingw (push) Waiting to run
Code scanning - action / CodeQL-Build (push) Waiting to run
Coverity Scan / latest (push) Waiting to run
tcc / ubuntu-tcc-newabi (push) Waiting to run
tcc / ubuntu-tcc-test (push) Waiting to run
tcc / ubuntu-tcc-nodbg (push) Waiting to run
tcc / r2pm-tcc (push) Waiting to run
tcc / ubuntu-tcc-syslibs (push) Waiting to run
2024-10-11 00:50:05 +02:00
pancake
7073d534b2
Replace "" with ' in more * subcommands, wip deprecation for safetiness ##shell 2024-10-10 18:37:03 +02:00
pancake
2698002f8c
Fix for xrefs permission indicator: -w- r-- ##analysis 2024-10-04 10:34:46 +02:00
pancake
9968329d49 Use asm.var.summary=4 by default ##disasm 2024-09-30 23:51:45 +02:00
pancake
940fb912c7
Refactor and check numeric arguments when adding flags 'f' ##shell 2024-09-20 16:45:51 +02:00
pancake
f415c27c1e
Handle multiline comments in pdsf ##print 2024-09-01 18:12:11 +02:00
kcdq
c0b426bb3c
TriCore Registers Profile fix for arch "tricore" and "tricore.cs" ##arch
* Others TriCore CPU could require some adjustments on special registers.
2024-09-01 11:26:40 +02:00
pancake
bea3250f56 Implement basic ESIL for movh and lea in tricore ##arch 2024-08-31 11:47:23 +02:00
pancake
f17783877f Use hex and detect invalid instructions for tricore.gnu ##arch 2024-08-31 01:18:31 +02:00
pancake
5e342c0613
Improvements for the x86.pseudo ##decompiler 2024-08-31 00:06:03 +02:00
pancake
a5e3ff2403 Initial pseudo disasm support for tricore ##arch 2024-08-30 00:51:28 +02:00
pancake
fdcc2e206c Improve handling of jump tables on arm64 ##analysis 2024-08-29 15:34:27 +02:00
pancake
9998e1db3b
Improved function argument emulation listing ##disasm
* Honor anal.cc, reduce the amount of -1, depends on emu.str
2024-08-28 21:04:57 +02:00
pancake
e9a66a5abb
Implement agD for testing dom graph ##analysis 2024-08-28 18:34:58 +02:00
pancake
f422b2b01b Add test for these swift-arm64 jumptables 2024-08-27 18:09:50 +02:00
pancake
a740f175e1 Expose imm value on ADD/SUB arm64 instructions ##analysis 2024-08-27 18:09:13 +02:00
pancake
6e93ca7b80 Ignore NEVER bit in branch instructions on SPARC ##analysis
* This caused some bad analysis on capstone < v5.0.2
* Aka workaround for a third-party bug
2024-08-08 13:13:05 +02:00
pancake
bcfa40c478
Add test and fix for the arm64 varsub issue ##disasm 2024-08-05 21:25:05 +02:00
pancake
d2725b7bd0
Improved default function names ##analysis 2024-08-02 13:00:12 +02:00
pancake
6ab1a8db78 Add anal.flagends to stop a functions when flags are found ##analysis 2024-08-01 12:07:23 +02:00
Francesco Tamagni
da4f9e705d
Fix aae behaviour on invalid instructions ##analysis
This prevents a scenario in which an invalid instruction also
invalidated the next ones, causing missing references.
2024-07-23 23:02:18 +02:00
pancake
a9215b1644 Add anal.fixed.* (move anal.gpfixed and add arch/bits ones) ##core 2024-07-22 18:30:58 +02:00
pancake
5ad29f409d
Show jmptbl bb cases in ab output (not just for abj) ##analysis 2024-07-08 23:24:06 +02:00
pancake
0780e6c60f
Initial support for MIPS jump tables (anal.jmp.tbl) ##analysis 2024-07-08 21:39:01 +02:00
pancake
2c3f0cb757
Fix missing arm reference regression in aaaa ##analysis 2024-07-05 12:17:23 +02:00
pancake
8e37c73859
Refactor the io/oi commands and fix io behaviour ##io 2024-07-04 21:05:52 +02:00
pancake
4536740a78
Rename ib as ooi ##shell 2024-07-04 16:47:37 +02:00
pancake
5928f46494
Store operations also deserve a place for asm.emu ##disasm 2024-07-03 18:20:34 +02:00
pancake
08eccc561d
Fix missing entries in the afla matching with aflq ##analysis 2024-06-20 00:39:34 +02:00
pancake
061f5b7d14
Remove trailing space in aflq output ##shell 2024-06-19 17:37:18 +02:00
pancake
e3d755fc64
Add anal.emu to run aaef in aaa and aef in af, for now optional ##analysis 2024-06-19 17:32:35 +02:00
pancake
e67d461689 Add test for the dbg.trace fix 2024-06-04 17:39:29 +02:00
pancake
f9c276642f Add op-count / bb-ratio info in afi/afij ##analysis 2024-06-01 10:03:57 +02:00
pancake
fcda581b7d Fix #22947 - afbij now returns an array ##analysis
* Because a single instruction can be used in two different basic blocks
2024-05-16 18:22:07 +02:00
pancake
d97fdb6e37
Reduce fp, do not run aav when minaddr is zero ##analysis (#22871)
* Reduce false positives, force object/shlib to set a baddr
2024-04-28 20:00:03 +02:00
pancake
c87f288c7d
Fix type confussion bug side effecting arm64 on BE ##analysis 2024-04-17 01:38:24 +02:00
kyufie
0535e9a802 Add test for ARM-style jmptbl analysis ##analysis 2024-04-16 02:16:27 +02:00
pancake
a2e4554709 Handle R_390_GLOB_DAT R_390_RELATIVE relocs for ELF/S390 ##bin
* Probably not correct, needs more testing
2024-04-02 12:44:28 +02:00
pancake
7bd6428f4a Expose numeric reloc type for PE, NE, LE, BFLT, MACH0 and ELF in ir and irj ##bin 2024-03-31 11:49:39 +02:00
pancake
ae3f8c6cd2 Fix test listing the missing relocs 2024-03-28 21:46:35 +01:00
Francesco Tamagni
5abb47ded1
Fix iS. paddr vaddr confusion ##core
This change removes the part of the `printHere` address check where it
explicitly checked for `paddr` even if the paddr / vaddr dichotomy is
already handled via the `addr` variable, which is the only one we have
to check here.

That caused wrong behaviour in binaries where the vaddr and paddr
space numerically overlap (like old DOS/4GW LE binaries) where `iS.`
was in fact picking the `paddr` instead of `vaddr` to filter if such
an entry came first in the list.
2024-03-15 19:46:48 +01:00
pancake
c1ef535d2c
Rename asm.calls to asm.cmt.calls ##disasm 2024-02-24 19:21:02 +01:00
pancake
dec3698578
Fix aac bug caused by anal.in on binaries with sections ##analysis 2024-02-16 12:52:27 +01:00
pancake
0acfd3d395
Use RBinName in RBinSymbol ##bin 2023-12-22 01:51:42 +01:00
Francesco Tamagni
32afc6e5d3 Parse len argument in aaex ##analysis 2023-11-23 11:17:58 +01:00
pancake
ff09c03943 Improved ia tests and trim trailing spaces in strings ##bin 2023-11-22 19:13:41 +01:00
pancake
fc94baa55b Improve aan/afna/afns add json and use emulation ##analysis
* Add tests for aan and afna
2023-11-21 23:38:57 +01:00
condret
281ab7a7f9 Show closed interval map boundaries on 'om,' command 2023-11-19 00:36:55 +00:00
pancake
3e3e0afa32 Fix /rc, document argument handling and add test ##analysis 2023-11-08 18:38:28 +01:00
pancake
2ad52da075 Implement afsv command to visualize function signature with given args ##print 2023-10-26 12:53:55 +02:00