C++: Add a test of append with CharT.

This commit is contained in:
Geoffrey White
2020-08-13 14:22:11 +01:00
parent 732a8fa4c9
commit 3c0e7a709f

View File

@@ -366,4 +366,12 @@ void test_string_append() {
s9.append(" ");
sink(s9); // tainted
}
{
std::string s10("abc");
char c = ns_char::source();
s10.append(1, c);
sink(s10); // tainted [NOT DETECTED]
}
}