Commit graph

28091 commits

Author SHA1 Message Date
Giovanni
e453f8ba76
Use only x64 for optimizations and portable for x86 (#3135) 2022-10-27 15:14:03 +02:00
Khairul Azhar Kasmiran
a80555e9c5
Update librz/asm/arch/cris/gnu/ to the latest binutils (#3127) 2022-10-27 19:06:53 +08:00
Giovanni
5168303b6d
Update blake3 to use cpu extensions (#3108) 2022-10-26 23:27:08 +02:00
wargio
da68d2507a Fix tests 2022-10-26 21:46:22 +02:00
wargio
e3bb728b26 Add afsb to output pattern, mask and search mask of the current function 2022-10-26 21:46:22 +02:00
wargio
bbdf3d03bd Fix flirt crc calculation, length and matching 2022-10-26 21:46:22 +02:00
Giovanni
3e5217456d
Fix mdmp endianness (#3126)
* MiniDmpHeader & MiniDmpLocDescr32/64 & MiniDmpMemDescr32/64

* MiniDmpException & MiniDmpExcStream

* MiniDmpModule

* MiniDmpThread & MiniDmpThreadList

* MiniDmpThreadEx & MiniDmpThreadExList

* Removed struct minidump_string

* MiniDmpDir

* MiniDmpExcPointers & MiniDmpExcInfo & MiniDmpFuncTableDescr

* MiniDmpFuncTableStream & MiniDmpHandleDataStream

* MiniDmpExcRecord & MiniDmpHandleDescr/2

* MiniDmpHandleObjInfo

* MiniDmpMemList64 & MiniDmpMemDescr64 (init)

* MiniDmpMemInfo & MiniDmpMemInfoList

* MiniDmpMiscInfo

* MiniDmpMiscInfo2

* MiniDmpSysInfo

* MiniDmpThreadInfoList & MiniDmpThreadInfo

* MiniDmpTokenInfo & MiniDmpTokenInfoList

* MiniDmpUnloadedModule & MiniDmpUnloadedModuleList

* MiniDmpUserStream & MiniDmpUserStreamInfo

* MiniDmpIncludeThreadCallback

* MiniDmpModuleCallback

* MiniDmpIncludeModuleCallback

* MiniDmpIOCallback

* MiniDmpReadMemoryFailureCallback

* MiniDmpCallbackOutput

* AVRFBacktraceInfo & AVRFHandleOp & MiniDmpHandleOpList

* MiniDmpObj
2022-10-25 09:37:05 +08:00
Khairul Azhar Kasmiran
2957d60730
Remove cosmetic changes from cris-dis.c (#3120) 2022-10-24 18:51:27 +08:00
Giovanni
161e3e3dda
Use RZ_NEW0() macro instead of calloc() (#3124) 2022-10-24 08:39:37 +08:00
Giovanni
5789f6557e
Threaded analysis matching (#3090) 2022-10-24 00:40:42 +02:00
Giovanni
d5e62c607b
Fix luac endianness (#3123) 2022-10-24 00:40:28 +02:00
Florian Märkl
522803309f
Fix coff on big endian hosts (#3122)
Also fixes alignment issues of ut32 values (crashes on sparc).
Fixes test/db/formats/coff
2022-10-23 22:39:19 +02:00
Giovanni
8aa46ea35b
Refactor pe_debug.c to fix endianness (#3121) 2022-10-23 21:04:19 +02:00
Giovanni
64a9459ea4
Fix flirt detection when function size is less than 32 bytes (#3118) 2022-10-23 16:34:43 +02:00
Florian Märkl
537d26bba5 Fix host endianness in pdr 2022-10-23 22:06:55 +08:00
Florian Märkl
aa29b427e0 Fix dyldcache slide version reading on big endian
Fixes test/db/formats/dyldcache on big endian, except for pxr issues.
2022-10-23 22:06:55 +08:00
wargio
3b19487f87 Cleanup plugin names. 2022-10-23 11:36:17 +02:00
wargio
174d02b4a7 Fix ninds plugin endianness and improved it 2022-10-23 11:36:17 +02:00
Giovanni
2172f2b341
Fix ahi i endianness (#3115) 2022-10-22 16:50:03 +02:00
Florian Märkl
9a379f345d
Make dyld_chained_ptr_* parsing endian-independent (#3113)
Fixes test/db/cmd/cmd_tc and test/db/formats/mach0/arm64e on big endian
2022-10-22 01:03:24 +02:00
wargio
7685bfe90e remove rz_mem_swaporcopy 2022-10-20 23:12:58 +02:00
wargio
ab5c0cb869 Fix endianness in px command 2022-10-20 23:12:58 +02:00
wargio
192f4251fb Fix endianness read&write on cmd_write_bits 2022-10-20 23:12:58 +02:00
wargio
b83893cfd3 Removed RZ_PACKED from le_specs.h 2022-10-20 23:12:58 +02:00
wargio
50063714f6 Resolve some BE issues on various files 2022-10-20 23:12:58 +02:00
wargio
457cc566a9 Refactor bin_mbn.c to fix endianness and remove global 2022-10-20 23:12:58 +02:00
Giovanni
e2ee0c3fd6
Rewritten bin_nin3ds.c and add test (#3110) 2022-10-20 19:56:17 +02:00
Giovanni
e7be5c5f1d
Cleanup endianness on rz_buf_fread/_at (#3109) 2022-10-19 11:04:21 +08:00
Giovanni
726614d09e
Fix endiannes issues on RzReg (#3106) 2022-10-19 09:56:12 +08:00
Giovanni
25e270dedc
Fix endianness in pyc (#3107) 2022-10-19 09:55:02 +08:00
Giovanni
3c3ad48545
Ensure double and float uses the proper method to decode it. (#3105) 2022-10-18 17:02:59 +02:00
Khairul Azhar Kasmiran
3ca1413c1c Revert cris.h back to mainstream formatting 2022-10-18 18:54:57 +08:00
Khairul Azhar Kasmiran
5eda15a45e Add librz/asm/arch/include/opcode/ to clang-format skiplist 2022-10-18 18:54:57 +08:00
Giovanni
7054afaa6b
Fix bad cast value conversion done via pointer dereference (#3104) 2022-10-18 09:40:30 +08:00
Giovanni
3d04185468
Remove un-alive mentions (#3103) 2022-10-18 08:54:35 +08:00
Florian Märkl
68a06e69d2
Rewrite reading in io_mach (#3101)
The previous reading code was slow (performed too many
vm_region_recurse_64 calls) and broken, for example at boundaries of
memory maps. Details can be found in the code comments.
2022-10-17 09:15:59 +08:00
Khairul Azhar Kasmiran
9ce5ef89c7
Revert some changes in 52e614035e of cris-dis.c (#3100) 2022-10-16 12:02:18 +02:00
Anton Kochkov
2d8d16e47b
Fix parsing QNX format on BE platforms (#3098) 2022-10-15 22:37:23 +08:00
Florian Märkl
f04845b48e
Remove syncing dbg->bits -> asm.bits (#3099)
As already mentioned in 8681cdc43b,
the deprecated dbg->bits is set and used quite randomly, for example on
macOS/arm64, disassembling sometimes sets it to 16, then stepping with
dbg.follow enabled syncs that value back to asm.bits, which makes no
sense and breaks further disassembly.
So in light of a future removal of dbg->bits, we remove this usage of
it to fix the issue.
2022-10-15 15:42:49 +02:00
Rot127
36d6c07b75
Fix PPC RZIL endianness issue on SystemZ (#3096)
* Fix endianness issue by passing `cs_ppc_op.reg` instead of `.imm` to cs_reg_name.

The issue with using the `.imm` union member is that it is a `st64` while `.reg` is an enum (on SystemZ 32bit wide).
On little endian systems `.reg == .imm`. Not so on big endian systems. In which
case it is `.reg == .imm >> 32`.

* Set correct test for broken instruction `bne cr5, <target>`.

See issue: https://github.com/capstone-engine/capstone/issues/1914
2022-10-15 20:39:37 +08:00
Khairul Azhar Kasmiran
a92d5f52ed
Fix gcc11-asan arcompact-dis -Wstringop-truncation warning (#3097) 2022-10-15 16:54:20 +08:00
Florian Märkl
2237870395
Mach-O: Add support for DYLD_CHAINED_PTR_64 (#3094)
The added test case was checked against execution on real iOS.
2022-10-14 19:59:29 +02:00
Khairul Azhar Kasmiran
b81d9225fc
Fix gcc12-asan arcompact-dis -Wformat-overflow= warnings (#3092) 2022-10-13 08:09:57 +08:00
Anton Kochkov
9f6e13f364
Remove rz-agent (#3087) 2022-10-12 10:34:46 +02:00
Anton Kochkov
3479a9b82a
Convert pv commands to rzshell (#3069) 2022-10-11 23:33:28 +08:00
Riccardo Schirone
b869e1c14a core/cmd_descs: add name of command on top of cmd handler 2022-10-11 14:02:47 +02:00
Anton Kochkov
4a037c2f2a
Convert dk commands to the rzshell (#3078) 2022-10-11 18:02:52 +08:00
Giovanni
171612c5e1
Add ssdeep hash (#3084) 2022-10-10 17:03:26 +02:00
Anton Kochkov
87e369b9a7
Convert de commands to the rzshell (#3083) 2022-10-10 22:10:48 +08:00
Anton Kochkov
24503df48b
Convert pF commands to the rzshell (#3071)
* Convert `pF` commands to the rzshell
* Add json output for PKCS7 and x509 and rename test due FS issues

Co-authored-by: wargio <wargio@libero.it>
2022-10-09 19:18:05 +02:00