Skip to content

Commit

Permalink
some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nikals99 committed Jan 27, 2022
1 parent 033134c commit 5551af5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
1 change: 1 addition & 0 deletions example_binaries/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ RUN apt-get install -y build-essential

RUN apt-get install -y gcc-9-aarch64-linux-gnu

WORKDIR /work
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@

public class Instruction {
private String address;
private boolean thumb;

public Instruction(String address, boolean thumb) {
public Instruction(String address) {
this.address = address;
this.thumb = thumb;
}

public String getAddress() {
Expand All @@ -16,12 +14,4 @@ public String getAddress() {
public void setAddress(String address) {
this.address = address;
}

public boolean isThumb() {
return thumb;
}

public void setThumb(boolean thumb) {
this.thumb = thumb;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public GlitchOptions getGlitchOptions() {
ArrayList<Instruction> instructions = new ArrayList<>();

for (String instructionAddr : instructionAddrs) {
instructions.add(new Instruction(instructionAddr, false));
instructions.add(new Instruction(instructionAddr));
}

GlitchOptions glitchOptions = new GlitchOptions(instructions);
Expand Down
2 changes: 1 addition & 1 deletion py_scripts/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(self, options):
def glitch(self):
working_glitches = []
print("starting to find path without glitch")
found: List[SimState] = self.find_path_with_glitch({"address": "0xFFFFFFFF", "thumb": False})
found: List[SimState] = self.find_path_with_glitch({"address": "0xFFFFFFFF"})
if len(found) > 0:
print(f"found {len(found)} path(s) without glitching")
working_glitches.append({"glitchAddress": "0x0", "paths": common.extract_paths(self.proj, found)})
Expand Down

0 comments on commit 5551af5

Please sign in to comment.