Commit graph

28596 commits

Author SHA1 Message Date
Riccardo Schirone
030016b2c3 util/buf: avoid undefined behaviour when dealing with empty files 2023-04-05 17:15:52 +08:00
Riccardo Schirone
10f7f1f92a db/cmd/cmd_r: do not hardcode the fd num 2023-04-05 17:15:52 +08:00
Riccardo Schirone
72e92fe81a io: fix iowhence2buf function
The function should convert the IO-specific whence enum to the
RzBuffer-specific whence enum, however it was doing the opposite.
Fortunately, it doesn't really affect anything because those two enums
have the same values.
2023-04-05 17:15:52 +08:00
Riccardo Schirone
e28345946a util: fix resize of mmap-ed files
When resizing files through `r` commands, although the buffers seemed to
be resized while the file was opened, the files were not really
truncated. Thus when re-opening the written file, no actual change was
made.
2023-04-05 17:15:52 +08:00
Giovanni
ba130cdb59
Remove TCP_NODELAY (#3443) 2023-03-31 21:44:06 +08:00
Anton Kochkov
1c7865b32e
Move %a to ascii, %F to flush (#3441) 2023-03-31 11:50:31 +08:00
Giovanni
0f3b141d51
SuperH should be less verbose. (#3439) 2023-03-31 08:34:57 +08:00
brightprogrammer
16e722cffc
Replace rz_core_cmd0 calls in tui/panels.c and port cmd_help commands to RzShell as cmd_math (#3421) 2023-03-30 18:36:48 +08:00
FaresAtef1
f06d8a998d
RzBuf: fix comparison of integer expressions of different signedness issue (#3432) 2023-03-28 09:13:34 +08:00
你不要过来啊
0e1bbd28f8
Remove RzBitmap in favor of RzBitvector (#3433) 2023-03-27 00:29:30 +08:00
Anton Kochkov
4c7408a15a Fix Debian Jessie builds 2023-03-27 00:21:26 +08:00
Anton Kochkov
e0c0886873 Move non-x86 tests out of x86 2023-03-24 15:40:20 +08:00
Anton Kochkov
2762beba68 Support BE platforms in value range search 2023-03-24 15:40:20 +08:00
Riccardo Schirone
65e4e9ebd1
Fix few sscanf issues reported by @yeggor (#3428) 2023-03-22 18:36:54 +08:00
Florian Märkl
8c9568e733 Add analysis for Objective-C selector stubs
aalo is renamed to aalor to make room for the new aalos command, which
analyzes the __objc_stubs section and assigns names to all detected
selector stubs there. The stub patterns currently supported are all that
are hardcoded in ld64 version 820.
This analysis is also run automatically in aaa if the binary is detected
to potentially having such stubs.
To cleanly rename functions which have been created previously at
unnamed stub locations, rz_core_analysis_function_rename() has been
enhanced to not leave behind flags called fcn.0x<offset>.
2023-03-21 19:33:49 +01:00
Florian Märkl
c79d7d2611 Add support for DYLD_CHAINED_PTR_32
arm64_32 is AArch64, but using 32bit pointers, which is primarily used
on watchOS. Handling DYLD_CHAINED_PTR_32 fixups is necessary to
correctly load such binaries.
2023-03-21 19:33:49 +01:00
Giovanni
f5b4682811
Allow to perform auto-analysis also from plugins (#3426) 2023-03-21 09:33:16 +08:00
Riccardo Schirone
a38970e1eb
rz_util: Fix cross-compilation when using system openssl (#3424) 2023-03-15 08:38:36 +08:00
Riccardo Schirone
d6196703d8 Fix conversion from GDB register profile to rizin profile 2023-03-14 11:41:29 +01:00
Riccardo Schirone
e7eae14ea1
Remove leftovers from radare2 codebase (#3423) 2023-03-14 11:02:12 +08:00
Heersin
3a7d511624
Add validation for rzil float theory (#3420) 2023-03-11 09:53:13 +01:00
Riccardo Schirone
fb71f36859
doc: add release issue template (#3386) 2023-03-10 08:39:55 +00:00
Giovanni
c7dfbbcdcd
Fix ar naming and io read/write api (#3419) 2023-03-10 06:21:39 +00:00
Giovanni
125f0333aa
Set perm to 644 to multiple text files (#3418)
Co-authored-by: Giovanni Grazioli <giovanni.grazioli@ubisoft.com>
2023-03-10 13:42:42 +08:00
Giovanni
eb3f7f80c5
Fix archive file io plugin (#3417)
* Fix loading .lib/.a files
* Add windows lib test for ar:// uri
2023-03-10 08:13:26 +08:00
Anton Kochkov
722c6024fe
Remove unused global in RzCore analysis (#3415) 2023-03-08 12:06:16 +08:00
billow
a8a6f36354
8051 RzIL fixes (#3413)
* fix `ljmp`
* fix `mov`
* fix push stack
* rename register `a` -> `acc`
* fix `ret`
* fix `j*`
* `dptr` -> `dpl`+`dph`
* memory mapping registers
* replace flags with `psw`
* fix duplicate register reads
* fix relative addressing
* fix reg_profile
* fix `mul` and `pc`
2023-03-05 12:54:25 +08:00
Anton Kochkov
3f065201b1
Fix string search to use proper implementation (#3414) 2023-03-03 15:50:11 +08:00
Anton Kochkov
ac1ea726b0
Fix C++ use for rz_* allocation functions (#3412) 2023-03-01 23:24:32 +08:00
Anton Kochkov
f8d02292f9
Remove inefficient rz_mem_swapendian() (#3411) 2023-03-01 20:53:24 +08:00
Anton Kochkov
fdc2f1e3bd
Move rz_mem_alloc() to rz_alloc.h (#3410) 2023-03-01 20:21:26 +08:00
Anton Kochkov
50d17471e7
Remove dead code in RzCons dietline (#3405) 2023-03-01 12:33:05 +08:00
Anton Kochkov
afa9aebc39 io_ptrace debugger fixes 2023-03-01 11:12:03 +08:00
Anton Kochkov
300fc28925 Remove dead code in RzUtil alloc 2023-03-01 11:12:03 +08:00
Anton Kochkov
d010892648
Convert dcs to the rzshell (#3403) 2023-02-28 14:24:55 +08:00
Pavel I
121e28a742
x86 IL: fix infinite loop caused by x86_il_get_parity (#3402)
* x86 IL: fix infinite loop caused by x86_il_get_parity
* Update tests
2023-02-28 10:01:41 +08:00
Anton Kochkov
e307b32c6d Fix Linux native debugger compilation for ARM64 2023-02-27 17:03:37 +08:00
Pavel I
f4e15d232a
Remove ip/eip/rip from lists of bound regs (#3401) 2023-02-25 12:34:28 +01:00
Anton Kochkov
315ba643b0 Fix CI by making GAS test Linux x86-only 2023-02-22 17:42:39 +08:00
R4444
0e8828c54e
Add GAS/AT&T syntax support in asm.c assembler (#3384) 2023-02-22 13:11:13 +08:00
Anton Kochkov
51e5868575
Fix crash for union type formatting with unknown member (#3389) 2023-02-21 17:03:19 +08:00
alice
c1edf60d3c
Fix cris-dis lto-type-mismatch warning (#3385)
cris_part_disassembler_options in asm_cris_gnu.c returns a bfd_boolean,
not bool
2023-02-21 09:48:15 +08:00
ajakk
2f9ceb6367
CI: install system capstone dependencies (#3388)
Signed-off-by: John Helmert III <ajak@gentoo.org>
2023-02-21 08:16:39 +08:00
ajakk
2315646570
CI: fix system capstone meson flag (#3383)
Signed-off-by: John Helmert III <ajak@gentoo.org>
2023-02-20 06:52:02 +08:00
John Helmert III
c4b663be36 fix capstone include paths
capstone include paths were adjusted in
2b8104bc5e, and this wasn't picked up in
the "PPC uplifting" commit, leading to a build failure with system
capstone.

Also fix the path of the ppc.h include, which seems to mistakenly use
capstone's ppc.h when building with bundled capstone.

Fixes: b46e7bd4f2 ("PPC uplifting to RzIL (#2823)")
Signed-off-by: John Helmert III <ajak@gentoo.org>
2023-02-20 00:01:15 +08:00
John Helmert III
cebd2f3200 CI: add build for building with system capstone
Signed-off-by: John Helmert III <ajak@gentoo.org>
2023-02-20 00:01:15 +08:00
Heersin
b2ace2664c
Add macroses to generate Inf/NaN for different types (#3373)
* Add macros to generate inf/nan for different types
* Move header dependency to rz_float and multiple renames
2023-02-19 20:55:23 +08:00
Giovanni
b2a3c5695e
Added agw details and fixed memleak (#3378) 2023-02-18 17:31:08 +08:00
Giovanni
3ae2ea3157
Fix rizinorg/cutter#3117 null deref due unknown type (#3374) 2023-02-17 23:18:58 +08:00
billow
4ee166e231
Fix install-headers and float.h 2023-02-17 08:20:34 +08:00