Cygwin: Fix cygheap corruption caused by cloned atomic buffer
The fhandler_base_overlapped::copyto clears atomic_write_buf on the clone, but none of the derived classes were doing this. This allowed the destructor to double-free the buffer and corrupt cygheap. Clear atomic_write_buf in copyto of all derived classes.
This commit is contained in:
committed by
Corinna Vinschen
parent
08eab6396f
commit
af85fdd73f
@@ -11,3 +11,6 @@ Bug Fixes
|
||||
|
||||
- Return ESPIPE rather than EINVAL from lseek on a fifo.
|
||||
Addresses: https://cygwin.com/ml/cygwin/2018-10/msg00019.html
|
||||
|
||||
- Fix a memory corruption when using pipes or FIFOs
|
||||
Addresses: https://cygwin.com/ml/cygwin-patches/2018-q4/msg00000.html
|
||||
|
Reference in New Issue
Block a user