capstone-engine / capstone

Capstone disassembly/disassembler framework for ARM, ARM64 (ARMv8), Alpha, BPF, Ethereum VM, HPPA, LoongArch, M68K, M680X, Mips, MOS65XX, PPC, RISC-V(rv32G/rv64G), SH, Sparc, SystemZ, TMS320C64X, TriCore, Webassembly, XCore and X86.
http://www.capstone-engine.org
7.19k stars 1.53k forks source link

memory read overrun in tms #977

Open radare opened 6 years ago

radare commented 6 years ago
_____________________
*** CID 166026:  Memory - illegal accesses  (OVERRUN)
/arch/TMS320C64x/TMS320C64xMapping.c: 1748 in TMS320C64x_insn_name()
1742        // handle special alias first
1743        for (i = 0; i < ARR_SIZE(alias_insn_names); i++) {
1744            if (alias_insn_names[i].id == id)
1745                return alias_insn_names[i].name;
1746        }
1747     
   CID 166026:  Memory - illegal accesses  (OVERRUN)
   Overrunning array "insn_name_maps" of 3 16-byte elements at element index 144 (byte offset 2304) using index "id" (which evaluates to 144).
1748        return insn_name_maps[id].name;
1749     #else
1750        return NULL;
1751     #endif
1752     }
1753     

** CID 166025:  Incorrect expression  (COPY_PASTE_ERROR)
/arch/TMS320C64x/TMS320C64xDisassembler.c: 292 in DecodeMemOperandSc()
radare commented 6 years ago

another one here:

________________________________________________________________________________________________________
*** CID 166023:  Memory - illegal accesses  (OVERRUN)
/arch/TMS320C64x/TMS320C64xMapping.c: 1779 in TMS320C64x_group_name()
1773     
1774        for (i = 0; i < ARR_SIZE(group_name_maps); i++) {
1775            if (group_name_maps[i].id == id)
1776                return group_name_maps[i].name;
1777        }
1778     
   CID 166023:  Memory - illegal accesses  (OVERRUN)
   Overrunning array "group_name_maps" of 7 16-byte elements at element index 132 (byte offset 2112) using index "id" (which evaluates to 132).
1779        return group_name_maps[id].name;
1780     #else
1781        return NULL;
1782     #endif
1783     }
1784     

** CID 166022:  Memory - illegal accesses  (NEGATIVE_RETURNS)
/cstool/cstool_x86.c: 242 in print_insn_detail_x86()