/[Apache-SVN]
ViewVC logotype

Revision 1887060


Jump to revision: Previous Next
Author: ylavic
Date: Tue Mar 2 00:37:18 2021 UTC (3 years, 2 months ago)
Changed paths: 5
Log Message:
Align apr_mmap()ing offset to a page boundary.  PR 65158.

This is requirement for unix systems, and otherwise can cause failures or
undefined behaviour with some filesystems.

Add apr_mmap_t->poffset on unixes to track the offset to the previous page,
relative to the user requested/actual offset. This allows ->mm and ->size to
still point to the actual data, while munmap() now deletes the full range
from the start of the page.

Tests updated accordingly.


Changed paths

Path Details
Directoryapr/apr/trunk/CHANGES modified , text changed
Directoryapr/apr/trunk/include/apr_mmap.h modified , text changed
Directoryapr/apr/trunk/mmap/unix/mmap.c modified , text changed
Directoryapr/apr/trunk/test/data/mmap_large_datafile.txt added
Directoryapr/apr/trunk/test/testmmap.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26