@@ -5125,7 +5125,7 @@ Dangerous usage of c_str(). The string is destroyed after the c_str() call so th
51255125 <remediationFunction >LINEAR</remediationFunction >
51265126 <remediationFunctionGapMultiplier >5min</remediationFunctionGapMultiplier >
51275127 </rule >
5128- <!-- ########### New in Cppcheck 1.69 Dev ########### -->
5128+ <!-- ########### New in Cppcheck 1.69 ########### -->
51295129 <rule >
51305130 <key >duplicateExpressionTernary</key >
51315131 <name >Same expression in both branches of ternary operator</name >
@@ -5263,7 +5263,7 @@ appropriate C library function.
52635263 <remediationFunction >LINEAR</remediationFunction >
52645264 <remediationFunctionGapMultiplier >5min</remediationFunctionGapMultiplier >
52655265 </rule >
5266- <!-- ########### New in Cppcheck 1.70 release ########### -->
5266+ <!-- ########### New in Cppcheck 1.70 ########### -->
52675267 <rule >
52685268 <key >negativeArraySize</key >
52695269 <name >Declaration of array with negative size is undefined behaviour</name >
@@ -8839,6 +8839,42 @@ be used in code that is removed by the preprocessor. Should this be a
88398839 <type >BUG</type >
88408840 <remediationFunction >LINEAR</remediationFunction >
88418841 <remediationFunctionGapMultiplier >5min</remediationFunctionGapMultiplier >
8842+ </rule >
8843+ <!-- ########### New in Cppcheck 2.50 ########### -->
8844+ <rule >
8845+ <key >assignmentInCondition</key >
8846+ <name >Suspicious assignment in condition. Condition 'x=y' is always true</name >
8847+ <description ><![CDATA[
8848+ <p>
8849+ Suspicious assignment in condition. Condition 'x=y' is always true.
8850+ </p>
8851+ <h2>References</h2>
8852+ <p><a href="https://cwe.mitre.org/data/definitions/571.html" target="_blank">CWE-571: Expression is Always True</a></p>
8853+ ]]> </description >
8854+ <tag >cwe</tag >
8855+ <severity >MINOR</severity >
8856+ <type >CODE_SMELL</type >
8857+ <remediationFunction >LINEAR</remediationFunction >
8858+ <remediationFunctionGapMultiplier >5min</remediationFunctionGapMultiplier >
8859+ </rule >
8860+ <rule >
8861+ <key >rethrowNoCurrentException</key >
8862+ <name >Rethrowing current exception with 'throw;', it seems there is no current exception to rethrow</name >
8863+ <description ><![CDATA[
8864+ <p>
8865+ Rethrowing current exception with 'throw;', it seems there is no
8866+ current exception to rethrow. If there is no current exception this
8867+ calls std::terminate(). More:
8868+ https://isocpp.org/wiki/faq/exceptions#throw-without-an-object
8869+ </p>
8870+ <h2>References</h2>
8871+ <p><a href="https://cwe.mitre.org/data/definitions/480.html" target="_blank">CWE-480: Use of Incorrect Operator</a></p>
8872+ ]]> </description >
8873+ <tag >cwe</tag >
8874+ <severity >MAJOR</severity >
8875+ <type >BUG</type >
8876+ <remediationFunction >LINEAR</remediationFunction >
8877+ <remediationFunctionGapMultiplier >5min</remediationFunctionGapMultiplier >
88428878 </rule >
88438879 <!-- ########### Misra Rules ########### -->
88448880 <rule >
0 commit comments