PyTorch from_file builds oversized tensors after byte-count overflow
An integer overflow lets torch.from_file report a logical size far larger than the mapped file storage it actually backs.
By tensorAn integer overflow lets torch.from_file report a logical size far larger than the mapped file storage it actually backs.
By tensorNon-contiguous batch dimensions on the out tensor make the CPU path step wrong and can corrupt the heap; CUDA is fine.
By tensorStrided and offset tensor paths in the compiler could read past valid memory without raising an error.
By tensor