capstone/arch
Grond66 a7399233eb
Fix unchecked allocations (#2844)
* Fix trivial unchecked allocations

* Move instruction lookup caching allocation into the core

* Apply formatting nitpicks

Co-authored-by: Rot127 <45763064+Rot127@users.noreply.github.com>

* Assert to avoid an integer overflow in lookup_insn_map()

* Remove unused member from cs_struct

* Document what happens when lookup_insn_map() fails

---------

Co-authored-by: Samuel Arnold <samuel.arnold@crowdstrike.com>
Co-authored-by: Rot127 <45763064+Rot127@users.noreply.github.com>
2026-02-14 13:55:33 +00:00
..
AArch64 Fix unchecked allocations (#2844) 2026-02-14 13:55:33 +00:00
Alpha Fix unchecked allocations (#2844) 2026-02-14 13:55:33 +00:00
ARC Fix unchecked allocations (#2844) 2026-02-14 13:55:33 +00:00
ARM Fix unchecked allocations (#2844) 2026-02-14 13:55:33 +00:00
BPF Add workflow to check for C code formatting and format all code with clang-format-17 (#2744) 2025-08-27 08:50:50 +00:00
EVM Add workflow to check for C code formatting and format all code with clang-format-17 (#2744) 2025-08-27 08:50:50 +00:00
HPPA Add workflow to check for C code formatting and format all code with clang-format-17 (#2744) 2025-08-27 08:50:50 +00:00
LoongArch Fix unchecked allocations (#2844) 2026-02-14 13:55:33 +00:00
M68K M68K: add displacement size fields to disassembler (#2842) 2026-01-11 13:37:45 +00:00
M680X Add workflow to check for C code formatting and format all code with clang-format-17 (#2744) 2025-08-27 08:50:50 +00:00
Mips Fix unchecked allocations (#2844) 2026-02-14 13:55:33 +00:00
MOS65XX Fix unchecked allocations (#2844) 2026-02-14 13:55:33 +00:00
PowerPC Fix unchecked allocations (#2844) 2026-02-14 13:55:33 +00:00
RISCV Fix unchecked allocations (#2844) 2026-02-14 13:55:33 +00:00
SH Fix SH decode table being exported globally (#2814) 2025-11-09 12:21:16 +00:00
Sparc Fix unchecked allocations (#2844) 2026-02-14 13:55:33 +00:00
SystemZ Fix unchecked allocations (#2844) 2026-02-14 13:55:33 +00:00
TMS320C64x Fix unchecked allocations (#2844) 2026-02-14 13:55:33 +00:00
TriCore Fix unchecked allocations (#2844) 2026-02-14 13:55:33 +00:00
WASM Add workflow to check for C code formatting and format all code with clang-format-17 (#2744) 2025-08-27 08:50:50 +00:00
X86 Fix unchecked allocations (#2844) 2026-02-14 13:55:33 +00:00
XCore Fix unchecked allocations (#2844) 2026-02-14 13:55:33 +00:00
Xtensa Fix unchecked allocations (#2844) 2026-02-14 13:55:33 +00:00