Language: Python
Label: safe
CWE: CWE-789 \u2014 Memory Allocation with Excessive Size Value
The product allocates memory based on an untrusted, large size value, but it does not ensure that the size is within expected limits, allowing arbitrary amounts of memory to be allocated.

Code:
    def __init__(self, value_type: VyperType, length: int):
        if not 0 < length < 2**256:
            raise InvalidType("Array length is invalid")

        if length >= 2**64:
            warnings.warn("Use of large arrays can be unsafe!")

        super().__init__(UINT256_T, value_type)
        self.length = length