Example #1
0
int test_dataFlowFromRegex()
{
	taint_source(x,y);	
	if(x == 0) return;

	sink(y);
}
Example #2
0
int test_call_tainting()
{
	taint_source(x,y);

	if(x == 0) return 1;
	if(y == 0) return -1;
}
Example #3
0
int test_isNotSanitizedByRegex()
{
	taint_source(x,y);	
	
	memset(y, 0, sizeof(y));

	sink(y);
}
Example #4
0
int two_taint_sources()
{
	taint_source(x,y);	
	second_taint_source(z);
	
	if(y == 0) return 1;
	if(z == 0) return -1;
}
Example #5
0
int testParamTaint(char *buf)
{
  taint_source(buf, buf);
}