Integer overflow
An integer overflow might occur when the input or resulting value is too large to store in associated representation. This can result in a critical security issue when it is used to make security decisions.


def integer_overflow_noncompliant():
    # Noncompliant: Number larger than limit of the datatype is stored.
    arr = np.array([[100000000]], dtype=np.int8)
def integer_overflow_compliant(self, request_items):
    # Compliant: Number stored is within the limits of the specified datatype.
    arr = np.array([100000000], dtype=np.int32)