CPP: Make precision/severity more conservative for now.

This commit is contained in:
Geoffrey White
2019-06-14 12:15:15 +01:00
parent 93c4f1eea5
commit df230d2ba6
4 changed files with 7 additions and 7 deletions

View File

@@ -2,9 +2,9 @@
* @name Year field changed using an arithmetic operation is used on an unchecked time conversion function
* @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.
* @kind problem
* @problem.severity error
* @problem.severity warning
* @id cpp/leap-year/adding-365-days-per-year
* @precision high
* @precision medium
* @tags security
* leap-year
*/

View File

@@ -2,9 +2,9 @@
* @name Year field changed using an arithmetic operation without checking for leap year
* @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.
* @kind problem
* @problem.severity error
* @problem.severity warning
* @id cpp/leap-year/unchecked-after-arithmetic-year-modification
* @precision high
* @precision medium
* @tags security
* leap-year
*/

View File

@@ -2,9 +2,9 @@
* @name Year field changed using an arithmetic operation is used on an unchecked time conversion function
* @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
* @kind problem
* @problem.severity error
* @problem.severity warning
* @id cpp/leap-year/unchecked-return-value-for-time-conversion-function
* @precision high
* @precision medium
* @tags security
* leap-year
*/

View File

@@ -3,7 +3,7 @@
* @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.
* An access on a leap year could result in buffer overflow bugs.
* @kind problem
* @problem.severity error
* @problem.severity warning
* @id cpp/leap-year/unsafe-array-for-days-of-the-year
* @precision medium
* @tags security