Merge pull request #36 from rdmarsh2/rdmarsh/cpp/add-security-tags

C++: add security tags to more queries
This commit is contained in:
Jonas Jensen
2018-08-14 12:07:28 +02:00
committed by GitHub
23 changed files with 26 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
* @id cpp/descriptor-may-not-be-closed
* @problem.severity warning
* @tags efficiency
* security
* external/cwe/cwe-775
*/
import semmle.code.cpp.pointsto.PointsTo

View File

@@ -5,6 +5,7 @@
* @id cpp/descriptor-never-closed
* @problem.severity warning
* @tags efficiency
* security
* external/cwe/cwe-775
*/
import semmle.code.cpp.pointsto.PointsTo

View File

@@ -5,6 +5,7 @@
* @id cpp/global-use-before-init
* @problem.severity warning
* @tags reliability
* security
* external/cwe/cwe-457
*/
import cpp

View File

@@ -5,6 +5,7 @@
* @id cpp/inconsistent-nullness-testing
* @problem.severity warning
* @tags reliability
* security
* external/cwe/cwe-476
*/
import cpp

View File

@@ -5,6 +5,7 @@
* @id cpp/initialization-not-run
* @problem.severity warning
* @tags reliability
* security
* external/cwe/cwe-456
*/
import cpp

View File

@@ -7,6 +7,7 @@
* @id cpp/late-negative-test
* @problem.severity warning
* @tags reliability
* security
* external/cwe/cwe-823
*/
import cpp

View File

@@ -5,6 +5,7 @@
* @id cpp/missing-negativity-test
* @problem.severity warning
* @tags reliability
* security
* external/cwe/cwe-823
*/
import cpp

View File

@@ -5,6 +5,7 @@
* @id cpp/missing-null-test
* @problem.severity recommendation
* @tags reliability
* security
* external/cwe/cwe-476
*/
import cpp

View File

@@ -5,6 +5,7 @@
* @id cpp/overflow-calculated
* @problem.severity warning
* @tags reliability
* security
* external/cwe/cwe-131
* external/cwe/cwe-120
*/

View File

@@ -6,6 +6,7 @@
* @id cpp/overflow-destination
* @problem.severity warning
* @tags reliability
* security
* external/cwe/cwe-119
* external/cwe/cwe-131
*/

View File

@@ -9,6 +9,7 @@
* @id cpp/return-stack-allocated-object
* @problem.severity warning
* @tags reliability
* security
* external/cwe/cwe-562
*/
import semmle.code.cpp.pointsto.PointsTo

View File

@@ -10,6 +10,9 @@
* @id cpp/bad-addition-overflow-check
* @tags reliability
* correctness
* security
* external/cwe/190
* external/cwe/192
*/
import cpp

View File

@@ -9,6 +9,7 @@
* @precision high
* @tags correctness
* reliability
* security
* external/cwe/cwe-119
* external/cwe/cwe-843
* @id cpp/upcast-array-pointer-arithmetic

View File

@@ -10,6 +10,7 @@
* @id cpp/non-constant-format
* @tags maintainability
* correctness
* security
* external/cwe/cwe-134
*/
import cpp

View File

@@ -8,6 +8,7 @@
* @id cpp/overflowing-snprintf
* @tags reliability
* correctness
* security
*/
import cpp

View File

@@ -8,6 +8,7 @@
* @id cpp/wrong-number-format-arguments
* @tags reliability
* correctness
* security
* external/cwe/cwe-685
*/
import cpp

View File

@@ -8,6 +8,7 @@
* @id cpp/wrong-type-format-argument
* @tags reliability
* correctness
* security
* external/cwe/cwe-686
*/

View File

@@ -8,6 +8,7 @@
* @id cpp/bad-strncpy-size
* @tags reliability
* correctness
* security
* external/cwe/cwe-676
* external/cwe/cwe-119
* external/cwe/cwe-251

View File

@@ -10,6 +10,7 @@
* @precision medium
* @tags reliability
* correctness
* security
* external/cwe/cwe-676
*/
import cpp

View File

@@ -8,6 +8,7 @@
* @id cpp/unsafe-strncat
* @tags reliability
* correctness
* security
* external/cwe/cwe-676
* external/cwe/cwe-119
* external/cwe/cwe-251

View File

@@ -9,6 +9,7 @@
* @id cpp/suspicious-sizeof
* @tags reliability
* correctness
* security
* external/cwe/cwe-467
*/
import cpp

View File

@@ -8,6 +8,7 @@
* @id cpp/unsafe-strcat
* @tags reliability
* correctness
* security
* external/cwe/cwe-676
* external/cwe/cwe-120
* external/cwe/cwe-251

View File

@@ -7,6 +7,8 @@
* @id cpp/self-assignment-check
* @problem.severity warning
* @tags reliability
* security
* external/cwe/cwe-826
*/
import cpp