ned14 / llfio

P1031 low level file i/o and filesystem library for the C++ standard
https://ned14.github.io/llfio/
Other
880 stars 45 forks source link

Fix unaligned map_handle::zero_memory on windows and support COW #133

Closed patstew closed 3 months ago

patstew commented 5 months ago

If you try to zero an unaligned address in a map_handle, it zeros the whole surrounding page on windows. Also pass the COW flag on to the map handle, otherwise the section is COW but the map is unwritable.

ned14 commented 3 months ago

Thanks for the fix!