C++: Add false positive.

This commit is contained in:
Geoffrey White
2020-06-25 11:21:08 +01:00
parent 5489bb9946
commit 720ac026dc
2 changed files with 2 additions and 1 deletions

View File

@@ -29,3 +29,4 @@
| test.cpp:135:14:135:40 | ... && ... | Return value of strcpy used in a logical operation. |
| test.cpp:137:14:137:40 | ... == ... | Return value of strcpy used in a logical operation. |
| test.cpp:139:14:139:40 | ... != ... | Return value of strcpy used in a logical operation. |
| test.cpp:159:9:159:16 | call to strcpy_s | Return value of strcpy_s used directly in a conditional expression. |

View File

@@ -156,7 +156,7 @@ void NegativeCases()
{
}
if (strcpy_s(szbuf1, 100, "test"))
if (strcpy_s(szbuf1, 100, "test")) // [FALSE POSITIVE]
{
}