summaryrefslogtreecommitdiff
path: root/Zend/zend_stream.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2012-08-02 12:30:07 +0800
committerXinchen Hui <laruence@php.net>2012-08-02 12:30:07 +0800
commit433089ccb4d4747a01d522e8678664ff17584615 (patch)
tree70ecb80e8e0b4e33aeffa04518c22935632e6265 /Zend/zend_stream.c
parent10642aa9e4f1eb694a8f7b514cc234cb24545744 (diff)
downloadphp-git-433089ccb4d4747a01d522e8678664ff17584615.tar.gz
Fixed bug #62716 (munmap() is called with the incorrect length)
Diffstat (limited to 'Zend/zend_stream.c')
-rw-r--r--Zend/zend_stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_stream.c b/Zend/zend_stream.c
index 5a02ecdfae..bc5206c12c 100644
--- a/Zend/zend_stream.c
+++ b/Zend/zend_stream.c
@@ -79,7 +79,7 @@ static size_t zend_stream_stdio_fsizer(void *handle TSRMLS_DC) /* {{{ */
static void zend_stream_unmap(zend_stream *stream TSRMLS_DC) { /* {{{ */
#if HAVE_MMAP
if (stream->mmap.map) {
- munmap(stream->mmap.map, stream->mmap.len);
+ munmap(stream->mmap.map, stream->mmap.len + ZEND_MMAP_AHEAD);
} else
#endif
if (stream->mmap.buf) {