Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 34444ac

Browse files
committed
CPP: Update the query name and description.
1 parent 2ae38a5 commit 34444ac

10 files changed

Lines changed: 6 additions & 6 deletions

File tree

cpp/ql/src/Security/CWE/CWE-676/DangerousUseOfGets.c renamed to cpp/ql/src/Security/CWE/CWE-676/DangerousFunctionOverflow.c

File renamed without changes.

cpp/ql/src/Security/CWE/CWE-676/DangerousUseOfGets.qhelp renamed to cpp/ql/src/Security/CWE/CWE-676/DangerousFunctionOverflow.qhelp

File renamed without changes.

cpp/ql/src/Security/CWE/CWE-676/DangerousUseOfGets.ql renamed to cpp/ql/src/Security/CWE/CWE-676/DangerousFunctionOverflow.ql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/**
2-
* @name Use of dangerous function 'gets'
3-
* @description The standard library 'gets' function is dangerous and should not be used.
2+
* @name Use of dangerous function
3+
* @description Use of a standard library function that does not guard against buffer overflow.
44
* @kind problem
55
* @problem.severity error
66
* @precision very-high
7-
* @id cpp/potentially-dangerous-function
7+
* @id cpp/dangerous-function-overflow
88
* @tags reliability
99
* security
1010
* external/cwe/cwe-242

cpp/ql/src/Security/CWE/CWE-676/PotentiallyDangerousFunction.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @name Use of potentially dangerous function
3-
* @description Certain standard library functions are dangerous to call.
3+
* @description Use of a standard library function that is not thread-safe.
44
* @kind problem
55
* @problem.severity warning
66
* @precision high

cpp/ql/test/query-tests/Security/CWE/CWE-242/semmle/tests/DangerousUseOfGets.expected renamed to cpp/ql/test/query-tests/Security/CWE/CWE-242/semmle/tests/DangerousFunctionOverflow.expected

File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Security/CWE/CWE-676/DangerousFunctionOverflow.ql

cpp/ql/test/query-tests/Security/CWE/CWE-242/semmle/tests/DangerousUseOfGets.qlref

Lines changed: 0 additions & 1 deletion
This file was deleted.

cpp/ql/test/query-tests/Security/CWE/CWE-676/semmle/PotentiallyDangerousFunction/DangerousUseOfGets.expected renamed to cpp/ql/test/query-tests/Security/CWE/CWE-676/semmle/PotentiallyDangerousFunction/DangerousFunctionOverflow.expected

File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Security/CWE/CWE-676/DangerousFunctionOverflow.ql

cpp/ql/test/query-tests/Security/CWE/CWE-676/semmle/PotentiallyDangerousFunction/DangerousUseOfGets.qlref

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)