]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
vss: Don't prefault header.
authorAndre Noll <maan@systemlinux.org>
Thu, 10 Nov 2011 09:14:21 +0000 (10:14 +0100)
committerAndre Noll <maan@systemlinux.org>
Fri, 11 Nov 2011 09:01:40 +0000 (10:01 +0100)
Commit 7bba6232 (vss: Mmap audio files using MAP_POPULATE.) introduced
read-ahead for chunks of the mmapped audio file. However, it missed
the fact that for ogg streams chunk 0 is created on the fly and stored
in a dynamically allocated buffer. Read-ahead on this buffer is likely
to access memory not owned by the process and might lead to a segfault.

Fix this bug by not performing read-ahead for chunk zero.


No differences found