pelijah
f818ca4296
Refactor sdb_foreach and related APIs ( #4471 )
...
* Refactor sdb_foreach and related APIs
* Strengthen bounds check in sdb_dump_next()
* Switch to RzPVector
* Use length info in filter_noreturn()
* Fix cmp function
* Remove unused sdb_like() API
* Pass SdbKv to SdbForeachCallback
* Add sdbkv_dup_value() helper
2024-05-07 07:57:52 +08:00
Khairul Azhar Kasmiran
2efd34a305
rz_core_task_join: Return true on join ( #4474 )
2024-05-06 21:10:43 +08:00
pelijah
57f1070726
Fix double free issue in bin_le ( #4473 )
2024-05-06 07:01:26 +08:00
pelijah
464f5bbb95
Fix double free issue in bin_luac.c ( #4472 )
2024-05-05 21:52:30 +03:00
Khairul Azhar Kasmiran
e283bda5de
Fix debuginfod test timeout under -q ( #4470 )
2024-05-05 10:41:12 +08:00
billow
a420733022
RzIL: add aezsue to support Step until PC equals given address and output VM changes ( #4466 )
2024-05-04 09:31:02 +08:00
Heersin
ba780a78dc
Relocation and analysis improvement for Renesas RX ( #4461 )
...
* Improve RX analysis of stack pointer
* Add Renesas RX ELF e_flag and reloc type macros
* Add Renesas RX relocation patch and elf_reloc to rz_reloc converter
* Update Renesas RX 'ir-info relocs' cmd test
* Add Renesas RX instruction description sdb
2024-05-01 09:34:52 +08:00
Khairul Azhar Kasmiran
bbbe3c6466
rizin: Clarify that -q runs both -i and -c ( #4465 )
2024-04-30 23:06:20 +08:00
pelijah
3aaa1bfe4d
Refactor TUI panels and fix several memleaks ( #4452 )
2024-04-27 19:54:36 +08:00
z3phyr
a7a29f110d
Revert memory leak fix for relocs ( #4463 )
2024-04-27 17:31:41 +08:00
Anton Kochkov
63d6d93195
debug: fix Android X86 builds
2024-04-27 16:44:21 +08:00
Anton Kochkov
c530cc9cae
capstone: update to the latest next
2024-04-27 16:44:21 +08:00
pelijah
b5898d0203
Add rz_pvector_enumerate macro ( #4462 )
2024-04-27 11:07:06 +08:00
Anton Kochkov
9526b6c0bc
Remove NIOS-II architecture ( #4457 )
2024-04-24 20:11:17 +08:00
pelijah
c2e0348437
RzIL: add unit-tests for float cmp helpers ( #4458 )
...
* RzIL: add unit-tests for float cmp helpers
* Add NaN cases
2024-04-24 20:09:03 +08:00
Giovanni
058a848e43
Error when log file cannot be opened. ( #4460 )
2024-04-23 18:44:15 +08:00
wargio
e08ceb9bd7
Always check the length of RzVector when accessing the tail elem
2024-04-23 12:07:11 +08:00
wargio
80cd0e9ae5
Always check the length before returning the head or tail
2024-04-23 12:07:11 +08:00
Rot127
34f1a9e7b4
Add rz_log and rz_core_notify functions usable with not-formatted strings. ( #4448 )
2024-04-22 07:31:37 +08:00
pelijah
b8ebd5ac42
Add missing vector foreach macros to clang-format cfg ( #4456 )
...
* Add rz_vector_foreach to clang-format cfg
* Add other vector foreach macros
2024-04-22 07:16:46 +08:00
billow
ea460e54c2
DWARF: fix type process with the same name ( #4454 )
...
* DWARF: Remove memory allocation for RzBinDwarfLocListEntry->range
* DWARF: fix type process with the same name
2024-04-21 22:56:22 +08:00
pelijah
87a0da83d6
Fix heap buffer over-read in pal.c ( #4455 )
2024-04-21 17:54:33 +03:00
Khairul Azhar Kasmiran
652591f826
..(: Declare macro args as raw ( #4453 )
2024-04-21 12:16:30 +08:00
z3phyr
0551f2545f
Fix memory leaks in linux heap parser ( #4426 )
...
* Fix memory leaks in debug path
* Fix memory leaks in mach and mdmp format
* Update the fix for mach
* Add support for aarch64 tcache parsing
* Test case fix
* Comment update
---------
Co-authored-by: Giridhar Prasath R <giridh1337@gmail.com>
2024-04-21 12:14:06 +08:00
Khairul Azhar Kasmiran
688c2bbe7c
.(: Don't unescape macro args ( #4450 )
2024-04-21 09:58:38 +08:00
pelijah
61c634a7e9
Replace Sdb with HT in panels.c ( #4449 )
2024-04-20 21:35:19 +03:00
Giovanni
3033f62865
Refactor logging. ( #4446 )
...
* Remove globals and refactor to complete implementation of logging.
* Renamed log.traplevel to log.abortlevel and hide it on release builds.
2024-04-19 13:02:58 +08:00
Giovanni
fffc34296a
Remove useless static and fix some pseudo grammar which broke. ( #4444 )
2024-04-18 22:00:10 +08:00
pelijah
c9f11efb03
Remove rz_list_of_sdblist API ( #4442 )
2024-04-18 16:57:30 +03:00
Giovanni
77f8f8052d
Remove useless static from asn1.c ( #4440 )
2024-04-18 19:59:16 +08:00
Giovanni
be83c0276b
update libdemangle ( #4429 )
2024-04-18 19:59:06 +08:00
pelijah
11cb44af98
Remove ht_pp.h include from rz_list.h ( #4441 )
2024-04-18 13:39:49 +03:00
Florian Märkl
2cacf880c1
Add missing newlines to some RZ_LOG_* calls ( #4439 )
2024-04-18 00:04:38 +08:00
Khairul Azhar Kasmiran
c5b20a8df8
Use Python venv on OpenBSD ( #4437 )
...
* Use Python venv on OpenBSD
* Activate venv after setting PATH
2024-04-16 23:43:20 +08:00
pelijah
f2d8e0db3d
Add HtSP, HtSS, HtSU, SetS ( #4415 )
...
- All `ht_*_new0()` are removed
- `freefn` field of HT options was renamed to `finiKV`
- `finiKV_user` fields was added to HT options
- Added `ht_*_new_opt_size` API
- `HtSP` and `HtUP` are created with `ValueFree` callback that allows to reduce extra LOC and prevent bugs
- `SetP` replaced with `SetS` (based on `HtSP`)
- `rz_th_ht_*_new0()` and `rz_th_ht_*_new_opt()` are replaced with `rz_th_ht_*_new(HtXX *)`
2024-04-16 20:27:48 +08:00
Aditya Maheshwari
c5d2e3f132
Add mention of str.search.* variables in the help of iz and izz ( #4433 )
2024-04-16 14:23:38 +08:00
Khairul Azhar Kasmiran
36ce78bc38
.(: Don't unwrap quoted args ( #4417 )
2024-04-15 18:32:12 +08:00
Khairul Azhar Kasmiran
73d85d270a
rz_cmd_desc_get_arg: Remove unused cmd param ( #4427 )
2024-04-11 17:57:18 +08:00
Khairul Azhar Kasmiran
d5f6f8f82f
Use xz-5.2.9.tar.gz instead due to Debian builds ( #4424 )
2024-04-10 01:02:28 +08:00
Florian Märkl
149453bd51
Fix debugger build on Mac OS X 10.5/x86
...
Some more APIs were incorrectly checked for with __POWERPC__, even
though they have nothing to do with the architecture, but were only
introduced in Mac OS X 10.6.
2024-04-09 10:54:12 +02:00
Florian Märkl
505893bdce
Fix debugger build on Mac OS X 10.5/ppc
...
Debugging itself is still not working, but now it does not prevent a successful
build for static analysis.
2024-04-09 10:54:12 +02:00
Florian Märkl
c23fdd90f0
Replace strnlen call
...
Non-C-standard strnlen is not available on Mac OS X 10.5
2024-04-09 10:54:12 +02:00
Florian Märkl
4f1a307bc1
Fix condition for posix_spawn in io_debug ( Fix #4352 )
...
The relevant flag we want to use with posix_spawn is
POSIX_SPAWN_CLOEXEC_DEFAULT, for which checking for __POWERPC__ made no
sense. This caused build failures on Mac OS X 10.6 and potential kernel
panics on 10.7.
2024-04-09 10:54:12 +02:00
pelijah
6280243ff2
ELF: skip visited segments in compute_symbols_from_segment() ( #4410 )
2024-04-07 14:22:21 +08:00
Dhruv Maroo
c6537d917e
Fix EXEC_WITH_RMODE macro and make the IL generated more concise ( #4413 )
...
* Use local variables in methods using `EXEC_WITH_RMODE` instead of
`DUP`ing the values. Do the same for ST register stack popping.
This leads to lesser code in the IL since the same long expression
does not get repeated in the IL everytime (since we don't `DUP`
anymore).
2024-04-05 08:30:35 +08:00
pelijah
de75daca14
Fix memleak in x86.nz asm plugin ( #4416 )
2024-04-05 08:29:49 +08:00
Florian Märkl
eeda6b1b59
Remove RzFlag.base
...
The only place where this field was set to a non-zero value was the now
removed fb command, and it was never used for anything sensible. Thus it
is safe to remove.
2024-04-04 13:22:57 +02:00
Florian Märkl
f223247b46
Remove fb command
...
The fb command can modify the offset of a flag, but does not update the
skiplist they are stored in, leading to a corrupted flag database. This
can be seen for example when executing
f test @ 0x4; fb 0x10 test; fl; pd 0x8 @ 0
2024-04-04 13:22:57 +02:00
Florian Märkl
c7f670296f
Add missing tests for 15->16 migration
2024-04-04 13:22:57 +02:00
Khairul Azhar Kasmiran
0f29d0074f
rzshell_which.py: Ignore FAKE and INNER entries ( #4412 )
...
Co-authored-by: Riccardo Schirone <562321+ret2libc@users.noreply.github.com>
2024-04-03 18:09:39 +08:00