File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed
src/main/java/it/unipr/analysis/taint Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change 2727public abstract class TaintAbstractDomain
2828 implements ValueDomain <TaintAbstractDomain >, BaseLattice <TaintAbstractDomain > {
2929
30- static int STACK_LIMIT = 32 ;
30+ /**
31+ * The stack limit.
32+ */
33+ protected static int STACK_LIMIT = 32 ;
3134
3235 /**
33- * The abstract stack domain
36+ * The abstract stack domain.
3437 */
3538 private final ArrayList <TaintElement > stack ;
3639
@@ -870,8 +873,22 @@ else if (isTop())
870873 return this .stack .get (STACK_LIMIT - 1 );
871874 }
872875
876+ /**
877+ * Yields the set of opcodes that push taint elements.
878+ *
879+ * @return the set of opcodes that push taint elements
880+ */
873881 public abstract Set <Operator > getTaintedOpcode ();
874882
883+ /**
884+ * Utility for creating a concrete instance of {@link TaintAbstractDomain}
885+ * given the stack and the memory.
886+ *
887+ * @param list the stack
888+ * @param memory the memory
889+ *
890+ * @return a new concrete instance of {@link TaintAbstractDomain}
891+ */
875892 public abstract TaintAbstractDomain mk (ArrayList <TaintElement > list , TaintElement memory );
876893
877894}
You can’t perform that action at this time.
0 commit comments