We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46018f1 commit 17cb445Copy full SHA for 17cb445
1 file changed
test/testvalueflow.cpp
@@ -6290,6 +6290,14 @@ class TestValueFlow : public TestFixture {
6290
"}\n";
6291
values = tokenValues(code, "x > 5", ValueFlow::Value::ValueType::UNINIT);
6292
ASSERT_EQUALS(0, values.size());
6293
+
6294
+ code = "void f() {\n" // #11152
6295
+ " char b[10];\n"
6296
+ " sprintf(b, \"abc\");\n"
6297
+ " printf(\"%s\", b);\n"
6298
+ "}\n";
6299
+ values = tokenValues(code, "b )", ValueFlow::Value::ValueType::UNINIT);
6300
+ ASSERT_EQUALS(0, values.size());
6301
}
6302
6303
void valueFlowConditionExpressions() {
0 commit comments