Array access not being recognized in MIPS #5927
Labels
Arch: MIPS
Issues with the MIPS architecture plugin
Component: Core
Issue needs changes to the core
Core: HLIL
Issue involves High Level IL
Core: MLIL
Issue involves Medium Level IL
Effort: Trivial
Issue should take < 1 day
Impact: Medium
Issue is impactful with a bad, or no, workaround
Milestone
Discussed in #5914
Originally posted by nwroot September 9, 2024
In this binary, $s5 is set to a pointer and below, a function call is performed using $s5 as the address for an array of structures
LLIL
However, in line 50 of the MLIL binja for some reason expresses it as a subtraction. This seems to cause ugly syntax in the HLIL ($s0 is essentially sizeof(struct1) * some_index)
Resulting HLIL
I apologize if this is hard to read, I would rather not reveal much detail of what I'm working on. I can provide the bndb if required.
Binary is available for V35 with "analysis inn spot shave".
The text was updated successfully, but these errors were encountered: