mirror of
https://github.com/github/codeql.git
synced 2025-12-21 19:26:31 +01:00
Merge pull request #1838 from jbj/leap-year-name
C++: Change name of UncheckedReturnValueForTimeFunctions.ql
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
/**
|
||||
* @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.
|
||||
* @name Arithmetic operation assumes 365 days per year
|
||||
* @description When an arithmetic operation modifies a date by a constant
|
||||
* value of 365, it may be a sign that leap years are not taken
|
||||
* into account.
|
||||
* @kind problem
|
||||
* @problem.severity warning
|
||||
* @id cpp/leap-year/adding-365-days-per-year
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
/**
|
||||
* @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
|
||||
* @name Unchecked return value for time conversion function
|
||||
* @description When the return value of a fallible time conversion function is
|
||||
* not checked for failure, its output parameters may contain
|
||||
* invalid dates.
|
||||
* @kind problem
|
||||
* @problem.severity warning
|
||||
* @id cpp/leap-year/unchecked-return-value-for-time-conversion-function
|
||||
|
||||
Reference in New Issue
Block a user