Skip to content

Commit 666b3ca

Browse files
Merge pull request #47 from lisa-analyzer/sanitizers-taint-domain
Added sanitizers support in `TaintAbstractDomain`
2 parents b4456bc + 4d18083 commit 666b3ca

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

src/main/java/it/unipr/analysis/taint/TaintAbstractDomain.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -906,6 +906,13 @@ else if (isTop())
906906
*/
907907
public abstract Set<Operator> getTaintedOpcode();
908908

909+
/**
910+
* Yields the set of opcodes that sanitize the state.
911+
*
912+
* @return the set of opcodes that sanitize the state
913+
*/
914+
public abstract Set<Operator> getSanitizedOpcode();
915+
909916
/**
910917
* Utility for creating a concrete instance of {@link TaintAbstractDomain}
911918
* given the stack and the memory.

src/main/java/it/unipr/analysis/taint/TimestampDependencyAbstractDomain.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ public Set<Operator> getTaintedOpcode() {
4444
return taintedOpcode;
4545
}
4646

47+
@Override
48+
public Set<Operator> getSanitizedOpcode() {
49+
return Set.of();
50+
}
51+
4752
@Override
4853
public TimestampDependencyAbstractDomain top() {
4954
return TOP;

src/main/java/it/unipr/analysis/taint/TxOriginAbstractDomain.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ public Set<Operator> getTaintedOpcode() {
3535
return Collections.singleton(OriginOperator.INSTANCE);
3636
}
3737

38+
@Override
39+
public Set<Operator> getSanitizedOpcode() {
40+
return Set.of();
41+
}
42+
3843
@Override
3944
public TxOriginAbstractDomain top() {
4045
return TOP;

0 commit comments

Comments
 (0)