11 static int DestLen = 4096;
18 void testTaintString1()
21 char *
Src =
"test%sTaintstring";
23 FO_ASSERT_EQUAL(
Result, 0);
24 FO_ASSERT_STRING_EQUAL(Dest,
"testReplaceTaintstring");
31 void testTaintString2()
34 char *
Src =
"test\'Taintstring";
36 FO_ASSERT_EQUAL(
Result, 0);
37 FO_ASSERT_STRING_EQUAL(Dest,
"test'\\''Taintstring");
44 void testTaintString3()
47 char *
Src =
"test\\Taintstring";
49 FO_ASSERT_EQUAL(
Result, 0);
50 FO_ASSERT_STRING_EQUAL(Dest,
"test\\\\Taintstring");
58 void testTaintString4()
61 char *
Src =
"test\'Taintstring";
63 FO_ASSERT_EQUAL(
Result, 0);
64 FO_ASSERT_STRING_EQUAL(Dest,
"test'Taintstring");
73 {
"TaintString1:", testTaintString1},
74 {
"TaintString2:", testTaintString2},
75 {
"TaintString3:", testTaintString3},
76 {
"TaintString4:", testTaintString4},
char * TaintString(char *S)
Create a string with taint quoting.
static int Result
Result of calls.
static char * Src
Souce location.
CU_TestInfo TaintString_testcases[]
TaintString() test cases.