Gửi #524198: pytorch pytorch (torch.nn.utils.rnn.unpack_sequence) torch 2.6.0 Segmentation faultthông tin

tiêu đềpytorch pytorch (torch.nn.utils.rnn.unpack_sequence) torch 2.6.0 Segmentation fault
Mô tả# Bug Description Calling `unpack_sequence` on an empty PackedSequence leads to a segmentation fault. # Reproduction Steps Run the following code: ``` import torch from torch.nn.utils.rnn import PackedSequence, unpack_sequence empty_data = torch.tensor([]) empty_batch_sizes = torch.tensor([], dtype=torch.int64) packed = PackedSequence(data=empty_data, batch_sizes=empty_batch_sizes) unpack_sequence(packed) ``` # Observed Behavior The program crashes with a segmentation fault, indicating an invalid memory access.
Nguồn⚠️ https://github.com/pytorch/pytorch/issues/149622
Người dùng
 Default436352 (UID 81891)
Đệ trình20/03/2025 15:43 (cách đây 1 Năm)
Kiểm duyệt30/03/2025 19:42 (10 days later)
Trạng tháiđược chấp nhận
Mục VulDB302048 [PyTorch 2.6.0 torch.nn.utils.rnn.unpack_sequence tràn bộ đệm]
điểm20

Interested in the pricing of exploits?

See the underground prices here!