[MPlayer-dev-eng] [PATCH] (loader/ext.c) VirtualAlloc() SIGSEGV on Linux + other fixes

Roberto Togni r_togni at tiscali.it
Fri Sep 10 18:52:10 CEST 2004


On 2004.08.16 11:22, A. Guru wrote:
> Changes:
> 
>     * mplayer received a SIGSEGV under Linux after
> 
> 	Opening video decoder: [dmo] DMO video codecs
> 	VirtualAlloc(0x00400000, 859648, 0x00003000, 0x00000040)
> 
>       with
> 
> 	-rw-r--r--  1 root root 807032 Nov 20  2002
> /usr/local/lib/codecs/wmv9dmod.dll
> 
>       because that region was already under use and mmap() with
> MAP_FIXED has
>       problems under Linux (see code).  VirtualAlloc() fixed in
> "loader/ext.c".
> 
>     * VirtualAlloc() made to conform with win32 documented behavior
> regarding
>       the alignment of the address and size arguments.
> 
>     * VirtualAlloc() detection of overlap with previous regions  
> fixed.
> 
> 
> 
> Feel free to comment printf() statements after proper behavior is
> verified.
> Also feel free to ajust indentation style to your liking.
>
Applied with printf commented out (except for error reporting).

Ciao,
 Roberto





More information about the MPlayer-dev-eng mailing list