Skip to content

Conversation

@bmourad01
Copy link
Contributor

In binaries with interworking, it is expected that the destinations of some control flow instructions will have a different encoding than said instructions (e.g. blx on ARM/Thumb). However, the rules in the disassembler were too restrictive, as they assumed that the destination encoding would have a join with the source encoding.

This PR relaxes the restriction by assuming at first the Theory.Language.unknown encoding. If no encoding can be found then we can then assume that the source encoding is to be used.

@ivg ivg changed the title Relax the restrictions on the encoding of destinations fixes a bug in instruction encoding propagation Feb 7, 2023
@ivg
Copy link
Member

ivg commented Feb 7, 2023

I changed the title to reflect that it is not just a relaxation but actually a bug fix :)

@ivg ivg merged commit 32a648b into BinaryAnalysisPlatform:master Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants