[FFmpeg-devel] [PATCH] Never unmap unallocated space

2017-01-07 Thread Tobias Stoeckmann
The function av_file_map can use mmap to memory-map the content of a file into address space. Just like every other alternative, mmap() could fail due to various reasons, e.g. if not enough address space is available. Unfortunately, av_file_map writes the requested size even on error into the supp

[FFmpeg-devel] [PATCH] ffserver: local OOB write with custom program name

2017-01-07 Thread Tobias Stoeckmann
When the command line for children is created, it is assumed that my_program_name always ends with "ffserver", which doesn't have to be true if ffserver is called through a symbolic link. In such a case, it could be that not enough space for "ffmpeg" is available at the end, leading to a buffer ov