capstone/arch/TriCore
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
..
TriCoreDisassembler.c Fix wrong version requirement of tricore instructions: (#2620) 2025-02-19 11:52:22 +08:00
TriCoreDisassembler.h Add operands access support for TriCore 2023-05-30 12:27:38 +08:00
TriCoreGenAsmWriter.inc Fix wrong version requirement of tricore instructions: (#2620) 2025-02-19 11:52:22 +08:00
TriCoreGenCSFeatureName.inc Add tricore tc1.8 instructions (#2595) 2025-01-28 20:50:43 +08:00
TriCoreGenCSMappingInsn.inc Fix wrong version requirement of tricore instructions: (#2620) 2025-02-19 11:52:22 +08:00
TriCoreGenCSMappingInsnName.inc Add tricore tc1.8 instructions (#2595) 2025-01-28 20:50:43 +08:00
TriCoreGenCSMappingInsnOp.inc Fix wrong version requirement of tricore instructions: (#2620) 2025-02-19 11:52:22 +08:00
TriCoreGenCSOpGroup.inc tricore: fixes #2474 (#2523) 2024-11-01 17:30:42 +08:00
TriCoreGenDisassemblerTables.inc Fix wrong version requirement of tricore instructions: (#2620) 2025-02-19 11:52:22 +08:00
TriCoreGenInstrInfo.inc Fix wrong version requirement of tricore instructions: (#2620) 2025-02-19 11:52:22 +08:00
TriCoreGenRegisterInfo.inc tricore: fixes #2474 (#2523) 2024-11-01 17:30:42 +08:00
TriCoreGenSubtargetInfo.inc Add tricore tc1.8 instructions (#2595) 2025-01-28 20:50:43 +08:00
TriCoreInstPrinter.c 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
TriCoreLinkage.h tricore: fixes #2474 (#2523) 2024-11-01 17:30:42 +08:00
TriCoreMapping.c tricore: fixes #2474 (#2523) 2024-11-01 17:30:42 +08:00
TriCoreMapping.h tricore: fixes #2474 (#2523) 2024-11-01 17:30:42 +08:00
TriCoreModule.c Fix unchecked allocations (#2844) 2026-02-14 13:55:33 +00:00
TriCoreModule.h add sign_ext zero_ext 2023-04-14 00:35:01 +08:00