Skip to content

Commit

Permalink
maybe fix 9.0 switch statements in swipc-gen
Browse files Browse the repository at this point in the history
  • Loading branch information
hthh committed Sep 10, 2019
1 parent a6bfd92 commit 5b71003
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions swipc-gen/ipcserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,10 @@ def trace_instruction(self, uc, instruction):
if spoiled in self.taints:
self.taints.remove(spoiled)
del self.taint_offsets[spoiled]
if instruction.mnemonic == 'ldrh' and instruction.op_str.endswith(', lsl #1]') and int(parts[2][1:]) in self.taints:
self.range_top = min(self.range_top, self.cmd_id) # TODO
if instruction.mnemonic == 'ldrb' and int(parts[2][1:]) in self.taints:
self.range_top = min(self.range_top, self.cmd_id) # TODO

if instruction.mnemonic == 'and' and parts[0].startswith(('w', 'x')) and int(parts[0][1:]) in self.taints:
spoiled = int(parts[0][1:])
Expand Down

0 comments on commit 5b71003

Please sign in to comment.