Hauptinhalt

Die Übersetzung dieser Seite ist veraltet. Klicken Sie hier, um die neueste Version auf Englisch zu sehen.

Numerische Defekte

Defekte aufgrund numerischer Codierungsfehler, Division durch Null, Typkonvertierung, negativer Verschiebeoperationen, mathematische Standardbibliothek

Bei diesen Defekten handelt es sich um Fehler im Zusammenhang mit Variablen in Ihrem Code, ihren Werten, Datentypen und ihrer Verwendung. Zu diesen Defekten gehören:

  • Mathematische Operationen

  • Überlauf bei der Konvertierung

  • Operativer Überlauf

Polyspace-Ergebnisse

alle erweitern

Bitwise operation on negativevalueUndefined behavior for bitwise operations on negative values
Integer constantoverflowConstant value falls outside range of integer data type
Integer conversion overflowOverflow when converting between integer types
Integer division by zeroDividing integer number by zero
Integer overflowOverflow from operation between integers
Integer precisionexceeded Operation using integer size instead of precision can cause undefined behavior
Invalid use of standard library integerroutineWrong arguments to standard library function
Possible invalid operation onboolean operandOperation can exceed precision of Boolean operand or result in arbitrary value
Precision lossfrom integer to float conversionLeast significant bits of integer lost during conversion to floating-point type
Right operand of shift operation outsideallowed boundsOverflow from shifting operation
Shift of a negative valueShift operator on negative value
Sign change integer conversionoverflowOverflow when converting between signed and unsigned integers
Unsigned integer conversionoverflowOverflow when converting between unsigned integer types
Unsigned integer overflowOverflow from operation between unsigned integers
Unsigned integerconstant overflowConstant value falls outside range of unsigned integer data type
Use of plain char type for numericalvaluePlain char variable in arithmetic operation without explicit signedness
Absorption of float operandOne addition or subtraction operand is absorbed by the other operand
Float conversion overflowOverflow when converting between floating point data types
Float division by zeroDividing floating point number by zero
Float overflowOverflow from operation between floating points
Invalid use of standard library floating pointroutineWrong arguments to standard library function

Themen

  • Bug Finder Defect Groups

    The Bug Finder defect checkers are classified into groups such as data flow, concurrency, numerical, and so on.