mirror of
https://github.com/github/codeql.git
synced 2026-05-03 04:39:29 +02:00
C++: Add false positive.
This commit is contained in:
@@ -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. |
|
||||
|
||||
@@ -156,7 +156,7 @@ void NegativeCases()
|
||||
{
|
||||
}
|
||||
|
||||
if (strcpy_s(szbuf1, 100, "test"))
|
||||
if (strcpy_s(szbuf1, 100, "test")) // [FALSE POSITIVE]
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user