def _returndata_encoding(contract_sig):
    if contract_sig.is_from_json:
        return Encoding.JSON_ABI
    return Encoding.ABI
The software performs operations on a memory buffer, but it can read from or write to a memory location that is outside of the intended boundary of the buffer.