summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2007-06-03 03:01:31 +0100
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2007-06-03 03:01:31 +0100
commitf398c68b695ee3dad829d95a724573ca42926205 (patch)
treec1e4e55719c5802bc868010f23ef9088892a5678 /src
parenta3caa5974f860b9702089c4ffea54e22f658fb49 (diff)
downloadxine-lib-f398c68b695ee3dad829d95a724573ca42926205.tar.gz
xine-lib-f398c68b695ee3dad829d95a724573ca42926205.tar.bz2
Add a comment & changelog entry for the mmap bug fix.
Diffstat (limited to 'src')
-rw-r--r--src/input/input_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input/input_file.c b/src/input/input_file.c
index d57eaacb9..c755a84a8 100644
--- a/src/input/input_file.c
+++ b/src/input/input_file.c
@@ -426,7 +426,7 @@ static int file_plugin_open (input_plugin_t *this_gen ) {
}
#ifdef HAVE_MMAP
- tmp_size = sbuf.st_size;
+ tmp_size = sbuf.st_size; /* may cause truncation - if it does, DON'T mmap! */
if ((tmp_size == sbuf.st_size) &&
( (this->mmap_base = mmap(NULL, tmp_size, PROT_READ, MAP_SHARED, this->fh, 0)) != (void*)-1 )) {
this->mmap_on = 1;