[Mplayer-cvslog] CVS: main dec_audio.c,1.20,1.21

Jürgen Keil jkeil at mplayer.dev.hu
Fri Jul 13 10:54:26 CEST 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv21749

Modified Files:
	dec_audio.c 
Log Message:
sh_audio->a_buffer is freed twice (here and in mplayer.c), can result to
malloc heap corruption.


Index: dec_audio.c
===================================================================
RCS file: /cvsroot/mplayer/main/dec_audio.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- dec_audio.c	12 Jul 2001 15:35:51 -0000	1.20
+++ dec_audio.c	13 Jul 2001 08:54:24 -0000	1.21
@@ -260,6 +260,7 @@
 
   if(!driver){
       if(sh_audio->a_buffer) free(sh_audio->a_buffer);
+      sh_audio->a_buffer=NULL;
       sh_audio->o_bps=0;
       return 0;
   }




More information about the MPlayer-cvslog mailing list