Menu ▾ ▴

#86 write transaction incorrectly reuses input buffer when using multiple outstanding I/Os and "Repeating bytes" mode

v1.0 (example)
open
nobody
None
3
2017-07-04
2017-06-26
Wojtek
No

When using "Repeating bytes" and multiple outstanding I/Os, the application re-uses and overwrittes one input buffer without waiting for pending Write completion.
This violates the Asynchronous I/O and Completion port I/Os spec:
https://msdn.microsoft.com/en-us/library/windows/desktop/aa365747(v=vs.85).aspx

There should be one buffer per outstanding I/O and it can be re-used only if the previously executed WriteFile completes.

Best Regards,
Wojciech Chojnowski

Discussion

  • Vedran Degoricija

    Thsi is definitely not the intented behavior. Can you shed more light about how you determined this, Windows OS version, does it only happen in repeating bytes mode, etc...

     

Log in to post a comment.