Skip to content

Commit

Permalink
Merge pull request #1 from cromulencellc/larkwiot-patch-1
Browse files Browse the repository at this point in the history
Ghidra should not suppress exceptions from scripts
  • Loading branch information
larkwiot authored Oct 7, 2021
2 parents 0aff588 + 7b02384 commit 8637096
Showing 1 changed file with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,8 @@ public int getChunk(byte[] res, AddressSpace spc, long off, int size,
int readLen = super.getChunk(res, spc, off, size, stopOnUnintialized);
if (filterEnabled && filter != null) {
filterEnabled = false;
try {
filter.filterRead(spc, off, readLen, res);
}
finally {
filterEnabled = true;
}
filter.filterRead(spc, off, readLen, res);
filterEnabled = true;
}
return readLen;
}
Expand All @@ -49,12 +45,8 @@ public void setChunk(byte[] res, AddressSpace spc, long off, int size) {
super.setChunk(res, spc, off, size);
if (filterEnabled && filter != null) {
filterEnabled = false;
try {
filter.filterWrite(spc, off, size, res);
}
finally {
filterEnabled = true;
}
filter.filterWrite(spc, off, size, res);
filterEnabled = true;
}
}

Expand Down

0 comments on commit 8637096

Please sign in to comment.