chriskohlhoff / asio

Asio C++ Library
http://think-async.com/Asio
4.97k stars 1.22k forks source link

wrong offset passed to io_uring_prep_write_fixed/io_uring_prep_read_fixed for asio::stream_file #1558

Open microcai opened 4 days ago

microcai commented 4 days ago

in asio/detail/io_uring_descriptor_read_op.hpp and asio/detail/io_uring_descriptor_write_op.hpp

in do_prepare, it prepares the sqe by calling io_uring_prep_read_fixed/io_uring_prep_write_fixed

for offset argument, it incorrectly pass 0 which should be -1.

microcai commented 3 days ago

sent a pr for this issue https://github.com/chriskohlhoff/asio/pull/1559