io_uring write_some_at writes at wrong offset
- Ngôn ngữ chính
- C++
- Star
- 1.6k
- Fork
- 485
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
In `io_uring_descriptor_service.hpp` we have:
return descriptor_ops::sync_write_at1(impl.descriptor_,
offset, impl.state_, bufs_type::first(buffers).data(),
bufs_type::first(buffers).size(), ec);
But in `descriptor_ops.ipp` we have:
std::size_t sync_write_at1(int d, state_type state, uint64_t offset,
const void* data, std::size_t size, boost::system::error_code& ec)
The observed symptom is that writes using `write_some_at` write to a constant and incorrect offset. Reversing the `offset` and `state` parameters in `io_uring_descriptor_service.hpp` fixes the symptom. I'm not confident that's the correct fix though and this same issue may be present in related code paths.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.