From: Andre Noll Date: Thu, 10 Nov 2011 09:14:21 +0000 (+0100) Subject: vss: Don't prefault header. X-Git-Tag: v0.4.9~10 X-Git-Url: http://git.tuebingen.mpg.de/?a=commitdiff_plain;h=71bcf40d3aeed43884c8db9e44d5eade41f22db2;hp=71bcf40d3aeed43884c8db9e44d5eade41f22db2;p=paraslash.git vss: Don't prefault header. 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. ---