Skip to content

ITE instruction in Thumb2 may not be lifted correctly #4498

@fuzyll

Description

@fuzyll

In the discussion below, at a quick glance, it looks like ite cc may not be applied correctly? This could be another case like #4430, although it seems like it's manifesting differently.

Discussed in #4427

Originally posted by imethod June 20, 2023
Excuse me I used a translation tool

image

mil
image

The three lines of thumb instruction should be an if else structure but mil complicates it

I tried merging variables , But the branches weren't removed

image

ida f5 effect
image

ninja c
image

The most important thing is that when I set the value of the variable, the second if is not recognized
image

Maybe there is a function that can be optimized manually but I don't understand how
thankes 0.0

Metadata

Metadata

Assignees

Labels

Arch: ARM/ThumbIssues with the ARM/Thumb architecture pluginComponent: ArchitectureIssue needs changes to an architecture pluginImpact: MediumIssue is impactful with a bad, or no, workaroundState: Need ReproductionIssue could not be reproduced by a developer

Type

No fields configured for Bug.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions