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

Skip to content

Commit df230d2

Browse files
committed
CPP: Make precision/severity more conservative for now.
1 parent 93c4f1e commit df230d2

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

cpp/ql/src/Likely Bugs/Leap Year/Adding365daysPerYear.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
* @name Year field changed using an arithmetic operation is used on an unchecked time conversion function
33
* @description A year field changed using an arithmetic operation is used on a time conversion function, but the return value of the function is not checked for success or failure.
44
* @kind problem
5-
* @problem.severity error
5+
* @problem.severity warning
66
* @id cpp/leap-year/adding-365-days-per-year
7-
* @precision high
7+
* @precision medium
88
* @tags security
99
* leap-year
1010
*/

cpp/ql/src/Likely Bugs/Leap Year/UncheckedLeapYearAfterYearModification.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
* @name Year field changed using an arithmetic operation without checking for leap year
33
* @description A field that represents a year is being modified by an arithmetic operation, but no proper check for leap years can be detected afterwards.
44
* @kind problem
5-
* @problem.severity error
5+
* @problem.severity warning
66
* @id cpp/leap-year/unchecked-after-arithmetic-year-modification
7-
* @precision high
7+
* @precision medium
88
* @tags security
99
* leap-year
1010
*/

cpp/ql/src/Likely Bugs/Leap Year/UncheckedReturnValueForTimeFunctions.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
* @name Year field changed using an arithmetic operation is used on an unchecked time conversion function
33
* @description A year field changed using an arithmetic operation is used on a time conversion function, but the return value of the function is not checked for success or failure
44
* @kind problem
5-
* @problem.severity error
5+
* @problem.severity warning
66
* @id cpp/leap-year/unchecked-return-value-for-time-conversion-function
7-
* @precision high
7+
* @precision medium
88
* @tags security
99
* leap-year
1010
*/

cpp/ql/src/Likely Bugs/Leap Year/UnsafeArrayForDaysOfYear.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @description An array of 365 items typically indicates one entry per day of the year, but without considering leap years, which would be 366 days.
44
* An access on a leap year could result in buffer overflow bugs.
55
* @kind problem
6-
* @problem.severity error
6+
* @problem.severity warning
77
* @id cpp/leap-year/unsafe-array-for-days-of-the-year
88
* @precision medium
99
* @tags security

0 commit comments

Comments
 (0)