public ascx_ManualMethodStreams()//astData astEngine)
		{
		//	AstData = astData
			//buildGui();
			//loadDataInGui();
			TaintRules = new O2CodeStreamTaintRules(); 									
		}	
示例#2
0
 public static O2CodeStreamTaintRules add_TaintPropagator(this O2CodeStreamTaintRules taintRules, string taintPropagator)
 {
     if (taintRules.TaintPropagators.Contains(taintPropagator).isFalse())
     {
         taintRules.TaintPropagators.Add(taintPropagator);
     }
     return(taintRules);
 }
示例#3
0
 public O2CodeStream(O2MappedAstData o2MappedAstData , O2CodeStreamTaintRules taintRules , string sourceFile )
 {
     O2MappedAstData = o2MappedAstData;
      TaintRules = taintRules;
      O2CodeStreamNodes  = new Dictionary<INode,O2CodeStreamNode>();
      StreamNode_First = new List<O2CodeStreamNode>();
      INodeStack = new Stack<INode>();
      SourceFile = sourceFile;
 }
 public O2CodeStream(O2MappedAstData o2MappedAstData, O2CodeStreamTaintRules taintRules, string sourceFile)
 {
     O2MappedAstData   = o2MappedAstData;
     TaintRules        = taintRules;
     O2CodeStreamNodes = new Dictionary <INode, O2CodeStreamNode>();
     StreamNode_First  = new List <O2CodeStreamNode>();
     INodeStack        = new Stack <INode>();
     SourceFile        = sourceFile;
 }
示例#5
0
 public static bool isTaintPropagator(this O2CodeStreamTaintRules taintRules, InvocationExpression invocationExpression)
 {
     //"in isTaintPropagator for {0}".info(invocationExpression.str());
     //return (taintRules.TaintPropagators.Contains(taintPropagator));
     return(true);
 }
示例#6
0
 public static bool isTaintPropagator(this O2CodeStreamTaintRules taintRules, string taintPropagator)
 {
     return(taintRules.TaintPropagators.Contains(taintPropagator));
 }